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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user