fix scrolling in sidebar

This commit is contained in:
Jon Staab 2024-11-21 14:25:57 -08:00
parent e83a72b426
commit 603653574c
2 changed files with 35 additions and 33 deletions

View file

@ -69,7 +69,7 @@
</script>
<div bind:this={element}>
<SecondaryNavSection>
<SecondaryNavSection class="max-h-screen">
<div>
<SecondaryNavItem class="w-full !justify-between" on:click={openMenu}>
<strong>{displayRelayUrl(url)}</strong>
@ -109,6 +109,7 @@
</Popover>
{/if}
</div>
<div class="min-h-0 overflow-auto">
<SecondaryNavItem href={makeSpacePath(url)}>
<Icon icon="home-smile" /> Home
</SecondaryNavItem>
@ -141,5 +142,6 @@
<Icon icon="add-circle" />
Create room
</SecondaryNavItem>
</div>
</SecondaryNavSection>
</div>

View file

@ -1,3 +1,3 @@
<div class="flex flex-col gap-1 px-2 py-4">
<div class="flex flex-col gap-1 px-2 py-4 {$$props.class}">
<slot />
</div>