Browse Source

adjust content panel

master
silberengel 3 months ago
parent
commit
785e029132
  1. 14
      src/lib/components/publications/Publication.svelte

14
src/lib/components/publications/Publication.svelte

@ -468,7 +468,7 @@
<!-- Add gap & items-start so sticky sidebars size correctly --> <!-- Add gap & items-start so sticky sidebars size correctly -->
<div <div
class="relative grid gap-4 items-start grid-cols-[1fr_1fr] grid-rows-[auto_1fr]" class="relative grid gap-4 items-start grid-cols-1 grid-rows-[auto_1fr]"
> >
<!-- Full-width ArticleNav row --> <!-- Full-width ArticleNav row -->
<ArticleNav {publicationType} rootId={indexEvent.id} {indexEvent} /> <ArticleNav {publicationType} rootId={indexEvent.id} {indexEvent} />
@ -488,10 +488,10 @@
}, 500); }, 500);
}} }}
/> />
<!-- Three-column row --> <!-- Content row -->
<div class="contents"> <div class="contents flex justify-center">
<!-- Table of contents column removed - using overlay drawer instead --> <!-- Table of contents column removed - using overlay drawer instead -->
<div class="mt-[70px]"> <div class="mt-[70px] w-full max-w-7xl">
<!-- Default publications --> <!-- Default publications -->
{#if $publicationColumnVisibility.main} {#if $publicationColumnVisibility.main}
<!-- Remove overflow-auto so page scroll drives it --> <!-- Remove overflow-auto so page scroll drives it -->
@ -693,13 +693,15 @@
{/key} {/key}
{/if} {/if}
</div> </div>
</div>
</div>
<!-- Discussion sidebar (overlay, outside layout) -->
<div <div
class="mt-[70px] relative {$publicationColumnVisibility.discussion class="mt-[70px] relative {$publicationColumnVisibility.discussion
? 'w-64' ? 'w-64'
: 'w-auto'}" : 'w-auto'}"
> >
<!-- Discussion sidebar -->
{#if $publicationColumnVisibility.discussion} {#if $publicationColumnVisibility.discussion}
<Sidebar <Sidebar
class="z-10 ml-4 fixed top-[162px] h-[calc(100vh-165px)] overflow-y-auto" class="z-10 ml-4 fixed top-[162px] h-[calc(100vh-165px)] overflow-y-auto"
@ -753,8 +755,6 @@
</Sidebar> </Sidebar>
{/if} {/if}
</div> </div>
</div>
</div>
<!-- Table of Contents Drawer (overlay, works on mobile and desktop) --> <!-- Table of Contents Drawer (overlay, works on mobile and desktop) -->
{#if publicationType !== "blog" && !isLeaf} {#if publicationType !== "blog" && !isLeaf}

Loading…
Cancel
Save