@@ -26,15 +26,15 @@ export default function DashboardHeader() {
2626
2727 return (
2828 < header
29- className = "shrink-0 flex items-center px-5 border-b select-none"
29+ className = "shrink-0 flex items-center px-4 sm:px- 5 border-b select-none"
3030 style = { {
3131 height : 56 ,
3232 background : 'var(--color-surface)' ,
3333 borderColor : 'var(--color-border)' ,
3434 } }
3535 >
3636 { /* ── Logo ── */ }
37- < NavLink to = "/dashboard" className = "flex items-center gap-2.5 mr-8 " >
37+ < NavLink to = "/dashboard" className = "flex items-center gap-2 sm:gap-2 .5 mr-4 sm:mr-8 shrink-0 " >
3838 < div
3939 className = "w-7 h-7 rounded-lg flex items-center justify-center shrink-0"
4040 style = { { background : 'var(--color-accent)' , opacity : 0.9 } }
@@ -56,7 +56,7 @@ export default function DashboardHeader() {
5656 key = { to }
5757 to = { to }
5858 end = { to === '/dashboard' }
59- className = "relative h-full flex items-center px-3 text-sm font-medium transition-colors"
59+ className = "relative h-full flex items-center px-2 sm:px-3 text-xs sm: text-sm font-medium transition-colors"
6060 style = { ( { isActive } ) => ( {
6161 color : isActive ? 'var(--color-accent)' : 'var(--color-muted)' ,
6262 } ) }
@@ -66,7 +66,7 @@ export default function DashboardHeader() {
6666 { label }
6767 { isActive && (
6868 < span
69- className = "absolute bottom-0 left-3 right-3 h-[2px] rounded-full"
69+ className = "absolute bottom-0 left-2 right-2 sm:left-3 sm: right-3 h-[2px] rounded-full"
7070 style = { { background : 'var(--color-accent)' } }
7171 />
7272 ) }
@@ -80,7 +80,7 @@ export default function DashboardHeader() {
8080 < div className = "flex-1" />
8181
8282 { /* ── Right controls ── */ }
83- < div className = "flex items-center gap-2" >
83+ < div className = "flex items-center gap-1 sm:gap- 2" >
8484 { /* Theme toggle */ }
8585 < button
8686 onClick = { toggleTheme }
@@ -103,7 +103,7 @@ export default function DashboardHeader() {
103103 { isAdmin && (
104104 < NavLink
105105 to = "/admin"
106- className = "flex items-center gap-1.5 px-2.5 py-1.5 rounded-md text-xs font-medium transition-colors"
106+ className = "hidden sm: flex items-center gap-1.5 px-2.5 py-1.5 rounded-md text-xs font-medium transition-colors"
107107 style = { { color : '#f59e0b' } }
108108 onMouseEnter = { ( e ) => ( e . currentTarget . style . background = 'rgba(245,158,11,0.1)' ) }
109109 onMouseLeave = { ( e ) => ( e . currentTarget . style . background = 'transparent' ) }
@@ -114,17 +114,17 @@ export default function DashboardHeader() {
114114 ) }
115115
116116 { /* Separator */ }
117- < div className = "w-px h-5" style = { { background : 'var(--color-border)' } } />
117+ < div className = "hidden sm:block w-px h-5" style = { { background : 'var(--color-border)' } } />
118118
119119 { /* User avatar + email */ }
120- < div className = "flex items-center gap-2" >
120+ < div className = "flex items-center gap-1.5 sm:gap- 2" >
121121 < div
122122 className = "w-7 h-7 rounded-full flex items-center justify-center text-xs font-bold"
123123 style = { { background : 'var(--color-accent-muted)' , color : 'var(--color-accent)' } }
124124 >
125125 { initial }
126126 </ div >
127- < span className = "text-xs max-w-[140px ] truncate" style = { { color : 'var(--color-muted)' } } >
127+ < span className = "hidden sm:inline text-xs max-w-[120px ] truncate" style = { { color : 'var(--color-muted)' } } >
128128 { userEmail }
129129 </ span >
130130 </ div >
0 commit comments