File tree Expand file tree Collapse file tree
apps/web/src/components/dashboard Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,33 +135,33 @@ export default function Sidebar({ overlay = false }: { overlay?: boolean }) {
135135 style = { { width : overlay ? mobileWidth : desktopWidth } }
136136 >
137137 { /* Mobile header */ }
138- < div className = "flex justify-between items-center h-16 px-4 border-b border-dash-border xl:hidden bg-dash-surface" >
139- < div className = "flex items-center" >
138+ < div className = "flex justify-between items-center h-16 px-4 border-b border-dash-border xl:hidden bg-dash-surface min-w-0 " >
139+ < div className = "flex items-center min-w-0 flex-1 overflow-hidden " >
140140 < Link
141141 href = "/"
142- className = "text-xl font-semibold text-text-primary hover:text-brand-purple transition-colors cursor-pointer"
142+ className = "text-xl font-semibold text-text-primary hover:text-brand-purple transition-colors cursor-pointer truncate block min-w-0 "
143143 >
144144 Opensox AI
145145 </ Link >
146146 </ div >
147- < IconWrapper onClick = { ( ) => setShowSidebar ( false ) } >
147+ < IconWrapper onClick = { ( ) => setShowSidebar ( false ) } className = "shrink-0" >
148148 < XMarkIcon className = "size-5 text-brand-purple" />
149149 </ IconWrapper >
150150 </ div >
151151
152152 { /* Desktop header with collapse */ }
153- < div className = "hidden xl:flex items-center justify-between px-4 py-4 border-b border-dash-border bg-dash-surface" >
153+ < div className = "hidden xl:flex items-center justify-between px-4 py-4 border-b border-dash-border bg-dash-surface min-w-0 " >
154154 { ! isCollapsed && (
155155 < Link
156156 href = "/"
157- className = "text-text-secondary font-semibold tracking-wide select-none text-xl hover:text-brand-purple transition-colors cursor-pointer"
157+ className = "text-text-secondary font-semibold tracking-wide select-none text-xl hover:text-brand-purple transition-colors cursor-pointer min-w-0 flex-1 truncate mr-2 "
158158 >
159159 Opensox AI
160160 </ Link >
161161 ) }
162162 < IconWrapper
163163 onClick = { toggleCollapsed }
164- className = { isCollapsed ? "w-full flex justify-center" : "" }
164+ className = { `shrink-0 ${ isCollapsed ? "w-full flex justify-center" : "" } ` }
165165 >
166166 { isCollapsed ? (
167167 < ChevronRightIcon className = "size-5 text-brand-purple" />
You can’t perform that action at this time.
0 commit comments