Commit 87132a4 1 parent 12b496b commit 87132a4 Copy full SHA for 87132a4
File tree 4 files changed +3
-5
lines changed
4 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import {
18
18
import { Textarea } from "@/components/ui/textarea" ;
19
19
import { tricks } from "@/lib/data" ;
20
20
import KanbanDemo from "@/registry/default/example/kanban-demo" ;
21
- import SortableDemo from "@/registry/default/example/sortable-demo" ;
22
21
import {
23
22
Combobox ,
24
23
ComboboxAnchor ,
@@ -34,7 +33,6 @@ import { ChevronDown } from "lucide-react";
34
33
export default function PlaygroundPage ( ) {
35
34
return (
36
35
< Shell >
37
- < SortableDemo />
38
36
< KanbanDemo />
39
37
< Textarea
40
38
placeholder = "Type here..."
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ import * as Sortable from "@/components/ui/sortable";
66
66
67
67
Display a dynamic overlay when an item is being dragged.
68
68
69
- <ComponentTabs name = " sortable-dynamic-overlay-demo" />
69
+ <ComponentTabs name = " sortable-dynamic-overlay-demo" scalePreview />
70
70
71
71
### With Handle
72
72
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export default function SortableDemo() {
50
50
< Sortable . Content className = "grid auto-rows-fr grid-cols-3 gap-2.5" >
51
51
{ tricks . map ( ( trick ) => (
52
52
< Sortable . Item key = { trick . id } value = { trick . id } asChild asHandle >
53
- < div className = "flex flex-col gap-1 rounded-md border bg-zinc-100 p-4 text-foreground shadow dark:bg-zinc-900" >
53
+ < div className = "flex size-full flex-col gap-1 rounded-md border bg-zinc-100 p-4 text-foreground shadow dark:bg-zinc-900" >
54
54
< div className = "font-medium text-sm leading-tight sm:text-base" >
55
55
{ trick . title }
56
56
</ div >
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ interface TrickCardProps
78
78
function TrickCard ( { trick, ...props } : TrickCardProps ) {
79
79
return (
80
80
< Sortable . Item key = { trick . id } value = { trick . id } asChild { ...props } >
81
- < div className = "flex flex-col gap-1 rounded-md border bg-zinc-100 p-4 text-foreground shadow dark:bg-zinc-900" >
81
+ < div className = "flex size-full flex-col gap-1 rounded-md border bg-zinc-100 p-4 text-foreground shadow dark:bg-zinc-900" >
82
82
< div className = "font-medium text-sm leading-tight sm:text-base" >
83
83
{ trick . title }
84
84
</ div >
You can’t perform that action at this time.
0 commit comments