File tree Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -50,26 +50,21 @@ export const Sidebar: FC = () => {
50
50
const { isAuthenticated } = useAuth ( ) ;
51
51
const { isSidebarOpen } = useApp ( ) ;
52
52
53
- if ( ! isSidebarOpen ) {
54
- // Keep the sidebar width for layout, but hide content
55
- return (
56
- < div
57
- className = "left-bar w-[240px] min-w-[180px] max-w-xs bg-secondary border-r border-r-secondary h-screen max-h-screen min-h-screen sticky top-0 transition-all duration-300"
58
- style = { {
53
+ return (
54
+ < div
55
+ className = "left-bar space-y-2 bg-secondary border-r border-r-secondary h-screen max-h-screen min-h-screen sticky top-0 transition-all duration-300"
56
+ style = { {
57
+ ...( ! isSidebarOpen && {
59
58
width : 0 ,
60
59
minWidth : 0 ,
61
60
maxWidth : 0 ,
62
61
overflow : 'hidden' ,
63
62
padding : 0 ,
64
63
border : 'none' ,
65
- } }
66
- />
67
- ) ;
68
- }
69
-
70
- return (
71
- < div className = "left-bar space-y-2 bg-secondary border-r border-r-secondary h-screen max-h-screen min-h-screen sticky top-0" >
72
- < div className = "flex flex-col justify-between h-screen" >
64
+ } ) ,
65
+ } }
66
+ >
67
+ < div className = "flex flex-col justify-between h-screen min-w-[240px]" >
73
68
< nav className = "w-full space-y-6 p-2 h-8" >
74
69
< div >
75
70
< div className = "flex items-stretch gap-2 h-full px-2" >
You can’t perform that action at this time.
0 commit comments