Hide sidebar menu on share pages for clean read-only view

Share pages (/share/*) now show no hamburger button and no
sidebar — just the results table with header. Clean, distraction-free
view for shared link recipients.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
mariosemes
2026-03-27 07:40:18 +01:00
parent 04f1ff0c6b
commit 88eaa68a85

View File

@@ -14,9 +14,12 @@
function closeSidebar() {
sidebarOpen = false;
}
let isSharePage = $derived($page.url.pathname.startsWith('/share'));
</script>
<div class="relative h-screen overflow-hidden">
{#if !isSharePage}
<!-- Hamburger toggle -->
<button
onclick={() => sidebarOpen = !sidebarOpen}
@@ -98,6 +101,7 @@
</a>
</nav>
</aside>
{/if}
<!-- Main content (full width) -->
<main class="h-full overflow-y-auto bg-surface">