Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22425677
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/back/routes/common/sortable/sortable.tsx b/src/back/routes/common/sortable/sortable.tsx
index d75ad80..4fe672d 100644
--- a/src/back/routes/common/sortable/sortable.tsx
+++ b/src/back/routes/common/sortable/sortable.tsx
@@ -1,41 +1,40 @@
import { TempstreamJSX } from "tempstream";
export function sortable({ items }: { items: JSX.Element[] }) {
return (
<div>
- <h2>Sortable</h2>
<div
data-controller="sortable"
class="sortable"
style={`grid-template-rows: repeat(${
items.length * 2
}, minmax(8px, min-content))`}
>
<div class="sortable__hole" data-index="-1" style="--index: -1"></div>
<div class="sortable__spacer" data-index="-1" style="--index: -1"></div>
{items.map((item, index) => (
<>
<div
class="sortable__element"
draggable="true"
style={`--index: ${index}`}
data-index={index.toString()}
>
{item}
</div>
<div
class="sortable__hole"
style={`--index: ${index}`}
data-index={index.toString()}
></div>
<div
class="sortable__spacer"
style={`--index: ${index}`}
data-index={index.toString()}
></div>
</>
))}
</div>
</div>
);
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Nov 28, 04:25 (3 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1216405
Default Alt Text
(1 KB)
Attached To
Mode
rREWRITE Configurable rewriter
Attached
Detach File
Event Timeline