mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-10 17:30:51 +00:00
fix: adjust cam preview
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
84f0c07d5c
commit
3f0a2f214a
@ -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);
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user