File tree Expand file tree Collapse file tree 3 files changed +27
-12
lines changed
app/admin/settings/shipping Expand file tree Collapse file tree 3 files changed +27
-12
lines changed Original file line number Diff line number Diff line change 11import ShippingRateManager from "@/components/admin/ShippingRateManager" ;
22
33export default function ShippingSettingsPage ( ) {
4- return (
5- < div className = "p-8" >
6- < ShippingRateManager />
7- </ div >
8- ) ;
4+ return < ShippingRateManager /> ;
95}
Original file line number Diff line number Diff line change @@ -206,11 +206,30 @@ export default function AdminLayoutClient({ children }: AdminLayoutClientProps)
206206 </ aside >
207207
208208 { /* ── MAIN CONTENT ── */ }
209- < main className = "flex-1 overflow-y-auto bg-[#0B0B0D] p-6 md:p-8 pb-24 md:pb-8 scroll-smooth" >
210- < div className = "max-w-7xl mx-auto" >
211- { children }
212- </ div >
213- </ main >
209+ < div className = "flex-1 flex flex-col overflow-hidden bg-[#0B0B0D]" >
210+ { /* Mobile Header */ }
211+ < header className = "md:hidden flex items-center justify-between px-5 py-4 border-b border-white/[0.06] bg-[#0D0D0F] z-20" >
212+ < Link href = "/admin" className = "flex flex-col" >
213+ < span className = "font-bold text-sm tracking-wide text-white" >
214+ DINA < span className = "text-[#D4AF37]" > ADMIN</ span >
215+ </ span >
216+ </ Link >
217+ < div className = "flex items-center gap-4" >
218+ < Link href = "/" target = "_blank" className = "text-white/30 hover:text-[#D4AF37] transition-colors" >
219+ < Store className = "w-5 h-5" />
220+ </ Link >
221+ < button onClick = { signOut } className = "text-white/30 hover:text-red-400 transition-colors" >
222+ < LogOut className = "w-5 h-5" />
223+ </ button >
224+ </ div >
225+ </ header >
226+
227+ < main className = "flex-1 overflow-y-auto p-4 md:p-8 pb-24 md:pb-8 scroll-smooth" >
228+ < div className = "max-w-7xl mx-auto" >
229+ { children }
230+ </ div >
231+ </ main >
232+ </ div >
214233
215234 { /* ── MOBILE BOTTOM NAV ── */ }
216235 < nav className = "md:hidden fixed bottom-0 left-0 w-full bg-[#0D0D0F] border-t border-white/[0.06] z-50 px-2 py-2 pb-safe" >
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export default function ShippingRateManager({ initialConfig }: { initialConfig?:
108108 return (
109109 < div className = "space-y-8 pb-24 animate-luxury-fade" >
110110 { /* Header */ }
111- < div className = "flex items-end justify-between" >
111+ < div className = "flex flex-col md:flex-row items-start md:items- end justify-between gap-4 " >
112112 < div >
113113 < h1 className = "text-3xl font-serif text-white tracking-wide" > Shipping Rates</ h1 >
114114 < p className = "text-xs text-white/40 uppercase tracking-widest mt-1" >
@@ -126,7 +126,7 @@ export default function ShippingRateManager({ initialConfig }: { initialConfig?:
126126 </ div >
127127
128128 { /* Tabs */ }
129- < div className = "flex border-b border-white/10" >
129+ < div className = "flex border-b border-white/10 overflow-x-auto custom-scrollbar whitespace-nowrap pb-1 " >
130130 { TABS . map ( tab => (
131131 < button
132132 key = { tab . id }
You can’t perform that action at this time.
0 commit comments