Skip to content

Commit d5b870c

Browse files
Fix navbar selection not updating, improve style
1 parent aa0c3a7 commit d5b870c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
{#each typedEntries(repos) as [id, { name }]}
160160
<Button
161161
variant="ghost"
162-
class={$tabState === id ? "bg-accent/75" : ""}
162+
class="hover:bg-accent/75"
163163
on:click={() => tabState.set(id)}
164164
disabled={$tabState === id}
165165
>

src/routes/+page.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
previousTab = newTab as Tab;
4646
if (fromUrlChange) return;
4747
pushState(`?${tabQueryParam}=${newTab}`, {});
48+
tabState.set(newTab as Tab);
4849
}
4950
5051
// Tab change from the store (layout)

0 commit comments

Comments
 (0)