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