Removing too wide border in videos
This commit is contained in:
parent
4436db0d3d
commit
873c335054
@ -65,8 +65,12 @@
|
|||||||
max-height: 20%;
|
max-height: 20%;
|
||||||
transition: transform 1000ms;
|
transition: transform 1000ms;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background-color: #00000099;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
line-height: 0;
|
||||||
|
|
||||||
|
&.nes-container.is-rounded {
|
||||||
|
border-image-outset: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.my-cam-video-container.hide {
|
.my-cam-video-container.hide {
|
||||||
@ -76,6 +80,7 @@
|
|||||||
.my-cam-video {
|
.my-cam-video {
|
||||||
background-color: #00000099;
|
background-color: #00000099;
|
||||||
max-height: 20vh;
|
max-height: 20vh;
|
||||||
|
max-width: max(25vw, 150px);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
-webkit-transform: scaleX(-1);
|
-webkit-transform: scaleX(-1);
|
||||||
transform: scaleX(-1);
|
transform: scaleX(-1);
|
||||||
@ -86,14 +91,4 @@
|
|||||||
color: white;
|
color: white;
|
||||||
padding: 40px 20px;
|
padding: 40px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include media-breakpoint-up(md) {
|
|
||||||
.my-cam-video {
|
|
||||||
width: 150px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.my-cam-video-container.hide {
|
|
||||||
right: -160px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
import { ScreenSharingPeer } from "../../WebRtc/ScreenSharingPeer";
|
import { ScreenSharingPeer } from "../../WebRtc/ScreenSharingPeer";
|
||||||
import LocalStreamMediaBox from "./LocalStreamMediaBox.svelte";
|
import LocalStreamMediaBox from "./LocalStreamMediaBox.svelte";
|
||||||
import type { Streamable } from "../../Stores/StreamableCollectionStore";
|
import type { Streamable } from "../../Stores/StreamableCollectionStore";
|
||||||
|
import PixelContainer from "../Container/PixelContainer.svelte";
|
||||||
|
|
||||||
export let streamable: Streamable;
|
export let streamable: Streamable;
|
||||||
export let isHightlighted = false;
|
export let isHightlighted = false;
|
||||||
@ -19,13 +20,15 @@
|
|||||||
class:mozaic-full-width={mozaicFullWidth}
|
class:mozaic-full-width={mozaicFullWidth}
|
||||||
class:mozaic-quarter={mozaicQuarter}
|
class:mozaic-quarter={mozaicQuarter}
|
||||||
>
|
>
|
||||||
{#if streamable instanceof VideoPeer}
|
<div>
|
||||||
<VideoMediaBox peer={streamable} clickable={isClickable} />
|
{#if streamable instanceof VideoPeer}
|
||||||
{:else if streamable instanceof ScreenSharingPeer}
|
<VideoMediaBox peer={streamable} clickable={isClickable} />
|
||||||
<ScreenSharingMediaBox peer={streamable} clickable={isClickable} />
|
{:else if streamable instanceof ScreenSharingPeer}
|
||||||
{:else}
|
<ScreenSharingMediaBox peer={streamable} clickable={isClickable} />
|
||||||
<LocalStreamMediaBox peer={streamable} clickable={isClickable} cssClass="" />
|
{:else}
|
||||||
{/if}
|
<LocalStreamMediaBox peer={streamable} clickable={isClickable} cssClass="" />
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@ -40,7 +43,7 @@
|
|||||||
transition: margin-left 0.2s, margin-right 0.2s, margin-bottom 0.2s, margin-top 0.2s, max-height 0.2s,
|
transition: margin-left 0.2s, margin-right 0.2s, margin-bottom 0.2s, margin-top 0.2s, max-height 0.2s,
|
||||||
max-width 0.2s;
|
max-width 0.2s;
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
background-color: rgba(0, 0, 0, 0.6);
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
max-height: 85%;
|
max-height: 85%;
|
||||||
max-width: 85%;
|
max-width: 85%;
|
||||||
@ -90,9 +93,19 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.nes-container.is-rounded {
|
||||||
|
border-image-outset: 1;
|
||||||
|
}
|
||||||
|
|
||||||
&.clickable {
|
&.clickable {
|
||||||
cursor: url("../../../style/images/cursor_pointer.png"), pointer;
|
cursor: url("../../../style/images/cursor_pointer.png"), pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> div {
|
||||||
|
background-color: rgba(0, 0, 0, 0.6);
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@include media-breakpoint-only(md) {
|
@include media-breakpoint-only(md) {
|
||||||
|
@ -83,6 +83,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<!-- svelte-ignore a11y-media-has-caption -->
|
<!-- svelte-ignore a11y-media-has-caption -->
|
||||||
<video
|
<video
|
||||||
|
class:no-video={!$constraintStore || $constraintStore.video === false}
|
||||||
use:srcObject={$streamStore}
|
use:srcObject={$streamStore}
|
||||||
autoplay
|
autoplay
|
||||||
playsinline
|
playsinline
|
||||||
@ -115,4 +116,7 @@
|
|||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
video.no-video {
|
||||||
|
visibility: collapse;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user