Hide voice rooms on mobile

This commit is contained in:
mplorentz
2026-03-09 11:19:10 -04:00
parent 7bf240e672
commit 393f85bc82
3 changed files with 10 additions and 14 deletions
+10 -6
View File
@@ -268,7 +268,9 @@
<SpaceMenuRoomItem notify {replaceState} {url} {h} />
{/if}
{#if $roomsWithLivekit.has(h)}
<VoiceRoomItem {url} {h} />
<div class="hidden md:block">
<VoiceRoomItem {url} {h} />
</div>
{/if}
{/each}
{#if $otherRooms.length > 0}
@@ -293,12 +295,14 @@
{/if}
{/each}
{#if $otherVoiceRooms.length > 0}
<div class="h-2"></div>
<SecondaryNavHeader>Voice Rooms</SecondaryNavHeader>
<div class="hidden md:block">
<div class="h-2"></div>
<SecondaryNavHeader>Voice Rooms</SecondaryNavHeader>
{#each $otherVoiceRooms as h (h)}
<VoiceRoomItem {url} {h} />
{/each}
</div>
{/if}
{#each $otherVoiceRooms as h (h)}
<VoiceRoomItem {url} {h} />
{/each}
{#if $canCreateRoom}
<SecondaryNavItem {replaceState} onclick={addRoom}>
<Icon icon={AddCircle} />