fix scrolling in sidebar
This commit is contained in:
@@ -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,37 +109,39 @@
|
|||||||
</Popover>
|
</Popover>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<SecondaryNavItem href={makeSpacePath(url)}>
|
<div class="min-h-0 overflow-auto">
|
||||||
<Icon icon="home-smile" /> Home
|
<SecondaryNavItem href={makeSpacePath(url)}>
|
||||||
</SecondaryNavItem>
|
<Icon icon="home-smile" /> Home
|
||||||
<SecondaryNavItem href={threadsPath} notification={$threadsNotification}>
|
|
||||||
<Icon icon="notes-minimalistic" /> Threads
|
|
||||||
</SecondaryNavItem>
|
|
||||||
<div class="h-2" />
|
|
||||||
<SecondaryNavHeader>Your Rooms</SecondaryNavHeader>
|
|
||||||
<MenuSpaceRoomItem {url} room={GENERAL} />
|
|
||||||
{#each rooms as room, i (room)}
|
|
||||||
<MenuSpaceRoomItem {url} {room} />
|
|
||||||
{/each}
|
|
||||||
{#if otherRooms.length > 0}
|
|
||||||
<div class="h-2" />
|
|
||||||
<SecondaryNavHeader>
|
|
||||||
{#if rooms.length > 0}
|
|
||||||
Other Rooms
|
|
||||||
{:else}
|
|
||||||
Rooms
|
|
||||||
{/if}
|
|
||||||
</SecondaryNavHeader>
|
|
||||||
{/if}
|
|
||||||
{#each otherRooms as room, i (room)}
|
|
||||||
<SecondaryNavItem href={makeSpacePath(url, room)}>
|
|
||||||
<Icon icon="hashtag" />
|
|
||||||
{room}
|
|
||||||
</SecondaryNavItem>
|
</SecondaryNavItem>
|
||||||
{/each}
|
<SecondaryNavItem href={threadsPath} notification={$threadsNotification}>
|
||||||
<SecondaryNavItem on:click={addRoom}>
|
<Icon icon="notes-minimalistic" /> Threads
|
||||||
<Icon icon="add-circle" />
|
</SecondaryNavItem>
|
||||||
Create room
|
<div class="h-2" />
|
||||||
</SecondaryNavItem>
|
<SecondaryNavHeader>Your Rooms</SecondaryNavHeader>
|
||||||
|
<MenuSpaceRoomItem {url} room={GENERAL} />
|
||||||
|
{#each rooms as room, i (room)}
|
||||||
|
<MenuSpaceRoomItem {url} {room} />
|
||||||
|
{/each}
|
||||||
|
{#if otherRooms.length > 0}
|
||||||
|
<div class="h-2" />
|
||||||
|
<SecondaryNavHeader>
|
||||||
|
{#if rooms.length > 0}
|
||||||
|
Other Rooms
|
||||||
|
{:else}
|
||||||
|
Rooms
|
||||||
|
{/if}
|
||||||
|
</SecondaryNavHeader>
|
||||||
|
{/if}
|
||||||
|
{#each otherRooms as room, i (room)}
|
||||||
|
<SecondaryNavItem href={makeSpacePath(url, room)}>
|
||||||
|
<Icon icon="hashtag" />
|
||||||
|
{room}
|
||||||
|
</SecondaryNavItem>
|
||||||
|
{/each}
|
||||||
|
<SecondaryNavItem on:click={addRoom}>
|
||||||
|
<Icon icon="add-circle" />
|
||||||
|
Create room
|
||||||
|
</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>
|
||||||
|
|||||||
Reference in New Issue
Block a user