- {#if showTileGrid}
- {#if useSpotlightLayout && primaryTile}
-
- {#each tiles as tile (tileKey(tile))}
- {@render videoTile(tile, "default")}
- {/each}
-
- {#each tiles as tile (tileKey(tile))}
- {@render videoTile(tile, "default")}
- {/each}
-
-
No camera or screen share yet.
-
- Use the camera or screen share control in the voice widget to share video.
-
+{#snippet videoPanelBody()}
+ {#if showTileGrid}
+ {#if useSpotlightLayout && primaryTile}
+
+ {@render videoTile(primaryTile, "spotlight")}
+ {#if secondaryTiles.length > 0}
+
+ {#each secondaryTiles as tile (tileKey(tile))}
+ {@render videoTile(tile, "strip")}
+ {/each}
+
+ {/if}
+ {:else if useMultiGrid}
+
+ {#each tiles as tile (tileKey(tile))}
+ {@render videoTile(tile, "default")}
+ {/each}
+
+ {:else}
+
+ {#each tiles as tile (tileKey(tile))}
+ {@render videoTile(tile, "default")}
+ {/each}
+
+ {/if}
+ {:else}
+
+
No camera or screen share yet.
+
Use the camera or screen share control to share video.
+
+ {/if}
+{/snippet}
+
+{#if showPanel}
+
+ {#if variant === "mobile"}
+
+
+ {@render videoPanelBody()}
+
+
+
+
+
+ {:else}
+ {@render videoPanelBody()}
{/if}
{/if}
diff --git a/src/app/components/VoiceWidget.svelte b/src/app/components/VoiceWidget.svelte
index 7270b930..dfcdebb6 100644
--- a/src/app/components/VoiceWidget.svelte
+++ b/src/app/components/VoiceWidget.svelte
@@ -1,6 +1,7 @@
@@ -96,18 +139,28 @@
out:fly={{y: 60, duration: 250}}
class="flex flex-col gap-2 rounded-box bg-base-100 p-3">
- {#if $voiceState === VoiceState.Joining}
-
Joining...
- {:else if $voiceState === VoiceState.Connected}
-
Voice Connected
- {:else}
-
Disconnected
- {/if}
+
+ {#if $voiceState === VoiceState.Joining}
+ Joining...
+ {:else if $voiceState === VoiceState.Connected}
+ Voice Connected
+ {:else}
+ Disconnected
+ {/if}
+ {#if showVoiceLayoutToggle}
+
+ {/if}
+
{roomName} / {spaceName}
-
+
{#if $voiceState === VoiceState.Joining}