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>
|
</script>
|
||||||
|
|
||||||
{#if stream !== null}
|
<div class="container">
|
||||||
<!-- svelte-ignore a11y-media-has-caption -->
|
{#if stream !== null}
|
||||||
<video bind:this={video} width="100%" height="100%" autoplay muted disablepictureinpicture />
|
<!-- svelte-ignore a11y-media-has-caption -->
|
||||||
{/if}
|
<video bind:this={video} width="100%" height="100%" autoplay muted disablepictureinpicture />
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.container {
|
||||||
|
padding: 0.375rem;
|
||||||
|
border-radius: 0.375rem;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
video {
|
video {
|
||||||
border-radius: inherit;
|
border-radius: inherit;
|
||||||
transform: rotateY(180deg);
|
transform: rotateY(180deg);
|
||||||
|
@ -101,9 +101,7 @@
|
|||||||
{/each}
|
{/each}
|
||||||
|
|
||||||
{#if selected}
|
{#if selected}
|
||||||
<div class="preview">
|
<MediaPopupCamPreview {selected} />
|
||||||
<MediaPopupCamPreview {selected} />
|
|
||||||
</div>
|
|
||||||
{/if}
|
{/if}
|
||||||
{:else}
|
{:else}
|
||||||
<MediaPopupItem
|
<MediaPopupItem
|
||||||
@ -126,14 +124,4 @@
|
|||||||
color: var(--theme-state-positive-color);
|
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>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user