Skip to content

Commit 99576ee

Browse files
committed
incredibly simple solution that 1pm me could not think of
1 parent 8431776 commit 99576ee

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

src/lib/sidebar/navigation/SidebarCategory.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
<details ontoggle={() => (windowInfo.isNavOpen = true)} class="w-full group marker:hidden">
1818
<summary
19-
class="rounded-lg cursor-pointer p-1 w-full flex gap-2 items-center text-left hover:bg-stone-700 hover:text-white hover:font-medium marker:hidden focus-visible:outline-2 focus-visible:outline-dph-orange">
19+
class="rounded-lg cursor-pointer p-1 flex gap-2 items-center text-left hover:bg-stone-700 hover:text-white hover:font-medium marker:hidden focus-visible:outline-2 focus-visible:outline-dph-orange">
2020
<Icon />
2121
{#if windowInfo.isNavOpen}
22-
<span class="grow min-w-0 will-change-transform">{name}</span>
23-
<IconExpand class="motion-safe:transition-all group-open:rotate-90 rotate-0" />
22+
<p class="grow">{name}</p>
23+
<IconExpand class="motion-safe:transition-all group-open:rotate-90 rotate-0 select-none" />
2424
{/if}
2525
</summary>
2626
{#if windowInfo.isNavOpen}

vite.config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export default defineConfig({
1616
cssMinify: "lightningcss",
1717
},
1818
css: {
19-
transformer: "lightningcss"
20-
}
19+
transformer: "lightningcss",
20+
},
21+
server: {
22+
allowedHosts: ["fc7a-24-141-246-63.ngrok-free.app"],
23+
},
2124
});

0 commit comments

Comments
 (0)