fix: adjust cam preview

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2025-05-06 12:25:05 +07:00
parent 84f0c07d5c
commit 3f0a2f214a
No known key found for this signature in database
GPG Key ID: 3320C3B3324E934C
2 changed files with 17 additions and 17 deletions

View File

@ -64,12 +64,24 @@
}
</script>
{#if stream !== null}
<!-- svelte-ignore a11y-media-has-caption -->
<video bind:this={video} width="100%" height="100%" autoplay muted disablepictureinpicture />
{/if}
<div class="container">
{#if stream !== null}
<!-- svelte-ignore a11y-media-has-caption -->
<video bind:this={video} width="100%" height="100%" autoplay muted disablepictureinpicture />
{/if}
</div>
<style lang="scss">
.container {
padding: 0.375rem;
border-radius: 0.375rem;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
video {
border-radius: inherit;
transform: rotateY(180deg);

View File

@ -101,9 +101,7 @@
{/each}
{#if selected}
<div class="preview">
<MediaPopupCamPreview {selected} />
</div>
<MediaPopupCamPreview {selected} />
{/if}
{:else}
<MediaPopupItem
@ -126,14 +124,4 @@
color: var(--theme-state-positive-color);
}
}
.preview {
padding: 0.375rem;
border-radius: 0.375rem;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
</style>