A focused Docker Compose management web application.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: history issue with tabs

Brooke 6b74bdf2 daa340d3

+5 -2
+2 -1
package.json
··· 3 3 "private": true, 4 4 "scripts": { 5 5 "dev": "pnpm --parallel -r dev", 6 - "build": "pnpm --parallel -r build" 6 + "build": "pnpm --parallel -r build", 7 + "check": "pnpm --parallel -r check" 7 8 }, 8 9 "volta": { 9 10 "node": "22.17.0"
+3 -1
packages/panel/src/lib/component/Tabs.svelte
··· 16 16 import type { Snippet } from "svelte"; 17 17 import Fa from "svelte-fa"; 18 18 import { page } from "$app/state"; 19 + import { goto } from "$app/navigation"; 19 20 20 21 let { tabs }: { tabs: { label: string; icon: IconDefinition; content: Snippet<[]> }[] } = $props(); 21 22 ··· 32 33 33 34 $effect(() => { 34 35 if (accordion.value) { 35 - window.location.hash = accordion.value; 36 + if (window.location.hash === "") history.replaceState(null, "", `#${accordion.value}`); 37 + else window.location.hash = accordion.value; 36 38 } 37 39 }); 38 40 </script>