@@ -53,9 +53,11 @@ function NavList() {
5353 className = "flex items-center dark:!text-foreground hover:bg-hover-gradient hover:dark:bg-hover-gradient-dark focus:bg-hover-gradient focus:dark:bg-hover-gradient-dark hover:!text-foreground focus:!text-foreground"
5454 >
5555 < List . ItemStart className = "flex items-center mr-1.5" >
56- < Icon className = "h-5 w-5 " />
56+ < Icon className = "icon-default x-short:icon-xsmall short-icon-xsmall " />
5757 </ List . ItemStart >
58- < Typography type = "small" > { title } </ Typography >
58+ < Typography type = "small" className = "x-short:text-xs" >
59+ { title }
60+ </ Typography >
5961 </ List . Item >
6062 ) ) }
6163 </ >
@@ -71,24 +73,24 @@ function ProfileMenu() {
7173 size = "sm"
7274 variant = "ghost"
7375 color = "secondary"
74- className = "flex items-center justify-center p-1 rounded-full h-8 w-8 text-foreground dark:text-foreground hover:!text-foreground focus:!text-foreground hover:bg-hover-gradient focus:bg-hover-gradient focus:dark:bg-hover-gradient-dark"
76+ className = "flex items-center justify-center p-1 rounded-full h-8 w-8 x-short:h-6 x-short:w-6 text-foreground dark:text-foreground hover:!text-foreground focus:!text-foreground hover:bg-hover-gradient focus:bg-hover-gradient focus:dark:bg-hover-gradient-dark"
7577 >
76- < UserCircleIcon className = "h-6 w-6 " />
78+ < UserCircleIcon className = "icon-large x-short:icon-default " />
7779 </ Menu . Trigger >
7880 < Menu . Content >
7981 < Menu . Item
8082 as = { Link }
8183 to = "/profile"
8284 className = "dark:text-foreground hover:bg-hover-gradient hover:dark:bg-hover-gradient-dark focus:bg-hover-gradient focus:dark:bg-hover-gradient-dark hover:!text-foreground focus:!text-foreground"
8385 >
84- < UserCircleIcon className = "mr-2 h-[18px] w-[18px] " /> Profile
86+ < UserCircleIcon className = "mr-2 icon-default " /> Profile
8587 </ Menu . Item >
8688 < Menu . Item
8789 as = { Link }
8890 to = "/preferences"
8991 className = "dark:text-foreground hover:bg-hover-gradient hover:dark:bg-hover-gradient-dark focus:bg-hover-gradient focus:dark:bg-hover-gradient-dark hover:!text-foreground focus:!text-foreground"
9092 >
91- < AdjustmentsHorizontalIcon className = "mr-2 h-[18px] w-[18px] " /> { ' ' }
93+ < AdjustmentsHorizontalIcon className = "mr-2 icon-default " /> { ' ' }
9294 Preferences
9395 </ Menu . Item >
9496 < hr className = "!my-1 -mx-1 border-surface" />
@@ -124,13 +126,13 @@ export default function FileglancerNavbar() {
124126 } , [ ] ) ;
125127
126128 return (
127- < Navbar className = "mx-auto w-full rounded-none bg-background p-4 dark:shadow-surface" >
129+ < Navbar className = "mx-auto w-full rounded-none bg-background p-4 short:py-3 x-short:py-1 dark:shadow-surface" >
128130 < div className = "flex items-center justify-between " >
129131 { /* Logo */ }
130132 < Link to = "/" >
131133 < div className = "bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent flex items-center" >
132134 < svg
133- className = "w-6 h-6 text-primary"
135+ className = "icon-large x-short:icon-small text-primary"
134136 viewBox = "0 0 18 24"
135137 version = "1.1"
136138 xmlns = "http://www.w3.org/2000/svg"
@@ -158,7 +160,7 @@ export default function FileglancerNavbar() {
158160 </ svg >
159161 < Typography
160162 type = "h6"
161- className = "ml-2 mr-2 block font-semibold pointer-events-none"
163+ className = "ml-2 mr-2 block font-semibold pointer-events-none x-short:text-base "
162164 >
163165 Janelia Fileglancer
164166 </ Typography >
@@ -182,9 +184,9 @@ export default function FileglancerNavbar() {
182184 onClick = { toggleTheme }
183185 >
184186 { isLightTheme ? (
185- < SunIcon className = "h-6 w-6 " />
187+ < SunIcon className = "icon-large x-short:icon-default " />
186188 ) : (
187- < MoonIcon className = "h-6 w-6 " />
189+ < MoonIcon className = "icon-large x-short:icon-default " />
188190 ) }
189191 </ IconButton >
190192 < ProfileMenu />
@@ -197,9 +199,9 @@ export default function FileglancerNavbar() {
197199 className = "mr-2 grid ml-auto text-foreground dark:text-foreground hover:!text-foreground focus:!text-foreground lg:hidden hover:bg-hover-gradient hover:dark:bg-hover-gradient-dark focus:bg-hover-gradient focus:dark:bg-hover-gradient-dark"
198200 >
199201 { openNav ? (
200- < XMarkIcon className = "h-6 w-6 " />
202+ < XMarkIcon className = "icon-large x-short:icon-default " />
201203 ) : (
202- < MenuIcon className = "h-6 w-6 " />
204+ < MenuIcon className = "icon-large x-short:icon-default " />
203205 ) }
204206 </ IconButton >
205207 </ div >
0 commit comments