Skip to content

Commit 0b238dd

Browse files
committed
refactor: optimize navbar for mobile
1 parent 9d7694b commit 0b238dd

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

TheGreenEpochWeb/src/App.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,38 +45,38 @@ function Layout(props: { children?: JSX.Element }) {
4545

4646
<header class="border-b border-border-default/60 bg-surface-2/80 backdrop-blur-md sticky top-0 z-50">
4747
<div class="w-full mx-auto px-4 sm:px-8 h-14 flex items-center justify-between">
48-
<A href="/" class="text-lg font-semibold tracking-tight text-accent hover:text-accent/80 no-underline transition-colors">
49-
<span class="mr-1.5"></span>TheGreenEpoch
48+
<A href="/" class="text-lg font-semibold tracking-tight text-accent hover:text-accent/80 no-underline transition-colors whitespace-nowrap">
49+
<span class="mr-1.5"></span><span class="hidden sm:inline">TheGreenEpoch</span>
5050
</A>
51-
<nav class="flex items-center gap-1 text-sm">
51+
<nav class="flex items-center gap-0.5 sm:gap-1 text-sm">
5252
<A
5353
href="/"
5454
end
55-
class="px-3 py-1.5 rounded-lg no-underline transition-colors"
55+
class="px-2 sm:px-3 py-1.5 rounded-lg no-underline transition-colors"
5656
activeClass="bg-accent-subtle text-accent font-medium"
5757
inactiveClass="text-fg-subtle hover:text-fg-body hover:bg-white/5"
5858
>
5959
Scenarios
6060
</A>
6161
<A
6262
href="/runs"
63-
class="px-3 py-1.5 rounded-lg no-underline transition-colors"
63+
class="px-2 sm:px-3 py-1.5 rounded-lg no-underline transition-colors"
6464
activeClass="bg-accent-subtle text-accent font-medium"
6565
inactiveClass="text-fg-subtle hover:text-fg-body hover:bg-white/5"
6666
>
6767
Runs
6868
</A>
6969
<A
7070
href="/optimize"
71-
class="px-3 py-1.5 rounded-lg no-underline transition-colors"
71+
class="px-2 sm:px-3 py-1.5 rounded-lg no-underline transition-colors"
7272
activeClass="bg-accent-subtle text-accent font-medium"
7373
inactiveClass="text-fg-subtle hover:text-fg-body hover:bg-white/5"
7474
>
7575
Optimize
7676
</A>
7777
<button
7878
onClick={toggleTheme}
79-
class="ml-2 p-1.5 rounded-lg text-fg-subtle hover:text-fg-body hover:bg-white/5 transition-colors"
79+
class="ml-1 sm:ml-2 p-2 sm:p-1.5 rounded-lg text-fg-subtle hover:text-fg-body hover:bg-white/5 transition-colors shrink-0"
8080
aria-label={`Switch to ${theme() === "dark" ? "light" : "dark"} mode`}
8181
>
8282
{theme() === "dark" ? (

0 commit comments

Comments
 (0)