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