{#if $isConnected && !$isCurrentInstanceConnected}
{:else if !configured}
{:else if loading} {/if}
3} class:hidden={loading}>
{#if withVideo}
{ roomWidth = element.clientWidth roomHeight = element.clientHeight }} class="videoGrid" style={$screenSharing ? '' : gridStyle} class:scroll-m-0={$screenSharing} > {#each participants as participant, i (participant._id)} 1 && (roomWidth - 16 * (columns - 1)) / columns < 300) || (rows > 1 && (roomHeight - 16 * (rows - 1)) / rows < 168)))} /> {/each}
{/if}
{#if $currentRoom} {/if}