@@ -13,8 +13,6 @@ import {
1313 IoCloseOutline ,
1414 IoChevronDownOutline ,
1515 IoChevronForwardOutline ,
16- IoSpeedometerOutline ,
17- IoCheckmarkCircleOutline ,
1816} from 'react-icons/io5' ;
1917
2018interface AdminLayoutProps {
@@ -133,9 +131,8 @@ export default function AdminLayout({ children }: AdminLayoutProps) {
133131 < div className = "flex min-h-screen flex-col md:flex-row" >
134132 { /* Sidebar */ }
135133 < aside
136- className = { `${
137- sidebarOpen ? 'translate-x-0' : '-translate-x-full'
138- } md:translate-x-0 fixed md:static inset-y-0 left-0 z-40 w-64 bg-black border-r border-white/10 transition-transform duration-300 md:transition-none`}
134+ className = { `${ sidebarOpen ? 'translate-x-0' : '-translate-x-full'
135+ } md:translate-x-0 fixed inset-y-0 left-0 z-40 w-64 bg-black border-r border-white/10 transition-transform duration-300 md:transition-none`}
139136 >
140137 < div className = "h-full flex flex-col" >
141138 { /* Desktop Header */ }
@@ -183,11 +180,10 @@ export default function AdminLayout({ children }: AdminLayoutProps) {
183180 { /* Group Header */ }
184181 < button
185182 onClick = { ( ) => toggleGroup ( group . label ) }
186- className = { `w-full flex items-center justify-between px-3 py-2.5 rounded-lg transition-colors font-medium text-sm ${
187- hasActiveItem
183+ className = { `w-full flex items-center justify-between px-3 py-2.5 rounded-lg transition-colors font-medium text-sm ${ hasActiveItem
188184 ? 'text-white bg-white/5'
189185 : 'text-neutral-400 hover:bg-white/5 hover:text-white'
190- } `}
186+ } `}
191187 >
192188 < div className = "flex items-center gap-3" >
193189 < GroupIcon className = "w-4 h-4" />
@@ -217,11 +213,10 @@ export default function AdminLayout({ children }: AdminLayoutProps) {
217213 < Link
218214 href = { item . href }
219215 onClick = { ( ) => setSidebarOpen ( false ) }
220- className = { `flex items-center gap-3 px-3 py-2 rounded-lg transition-colors text-sm ${
221- isActiveItem
216+ className = { `flex items-center gap-3 px-3 py-2 rounded-lg transition-colors text-sm ${ isActiveItem
222217 ? 'font-bold text-white bg-white/5 border border-white/10'
223218 : 'text-neutral-400 hover:bg-white/5 hover:text-white'
224- } `}
219+ } `}
225220 >
226221 < ItemIcon className = "w-4 h-4" />
227222 < span > { item . label } </ span >
@@ -274,7 +269,7 @@ export default function AdminLayout({ children }: AdminLayoutProps) {
274269 </ aside >
275270
276271 { /* Main Content */ }
277- < main className = "flex-1 px-4 md:px-8 py-6 md:py-8 overflow-y-auto" >
272+ < main className = "flex-1 px-4 md:px-8 py-6 md:py-8 overflow-y-auto md:ml-64 " >
278273 { children }
279274 </ main >
280275 </ div >
0 commit comments