fix scrolling in sidebar
This commit is contained in:
parent
e83a72b426
commit
603653574c
2 changed files with 35 additions and 33 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue