File tree Expand file tree Collapse file tree 2 files changed +17
-17
lines changed
Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -69,17 +69,17 @@ const DrawerContent = React.forwardRef<
6969 return (
7070 < DrawerPortal >
7171 < DrawerOverlay />
72- < DrawerPrimitive . Content
73- ref = { setRefs }
74- tabIndex = { - 1 }
75- onOpenAutoFocus = { handleOpenAutoFocus }
76- className = { cn (
77- "fixed inset-x-0 bottom-0 z-[500] mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background outline-none" ,
78- "after:hidden" , // Remove default handle if any
79- className
80- ) }
81- { ...props }
82- >
72+ < DrawerPrimitive . Content
73+ ref = { setRefs }
74+ tabIndex = { - 1 }
75+ onOpenAutoFocus = { handleOpenAutoFocus }
76+ className = { cn (
77+ "fixed inset-x-0 bottom-0 z-[500] flex h-auto flex-col rounded-t-[10px] border bg-background outline-none" ,
78+ "after:hidden" , // Remove default handle if any
79+ className
80+ ) }
81+ { ...props }
82+ >
8383 < div className = "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" />
8484 { children }
8585 </ DrawerPrimitive . Content >
Original file line number Diff line number Diff line change @@ -129,25 +129,25 @@ function DemoDashboardContent() {
129129 "relative flex items-center justify-between px-4 py-3 border-b backdrop-blur-md" ,
130130 isDark ? "bg-[rgb(10,10,10)]/80 border-white/10" : "bg-white/80 border-black/10"
131131 ) } >
132- < div className = "flex items-center gap-4 " >
132+ < div className = "flex items-center gap-3 min-w-0 " >
133133 < SidebarTrigger className = { isDark ? "text-white" : "text-black" } />
134- < h1 className = { cn ( "text-lg font-semibold" , isDark ? "text-white" : "text-black" ) } >
134+ < h1 className = { cn ( "text-base sm:text- lg font-semibold truncate " , isDark ? "text-white" : "text-black" ) } >
135135 { getTabLabel ( activeTab ) }
136136 </ h1 >
137+ </ div >
138+ < div className = "flex items-center gap-2" >
137139 < button
138140 className = { cn (
139- "p-1.5 rounded-md transition-colors" ,
141+ "p-1.5 rounded-md transition-colors sm:order-2 " ,
140142 isDark ? "hover:bg-white/10 text-white/60" : "hover:bg-black/10 text-black/60"
141143 ) }
142144 onClick = { ( ) => window . location . reload ( ) }
143145 >
144146 < RotateCcw className = "w-4 h-4" />
145147 </ button >
146- </ div >
147- < div className = "flex items-center gap-2" >
148148 < NotificationCenter
149149 isDark = { isDark }
150- className = "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 sm: static sm:left-auto sm:top-auto sm:translate-x-0 sm:translate-y-0 "
150+ className = "static sm:order-3 "
151151 />
152152 < a
153153 href = "/docs"
You can’t perform that action at this time.
0 commit comments