diff --git a/packages/theme/styles/love.scss b/packages/theme/styles/love.scss index 58b53087c4..5ff230b771 100644 --- a/packages/theme/styles/love.scss +++ b/packages/theme/styles/love.scss @@ -64,6 +64,7 @@ & > div { opacity: .35; } } + & > * { pointer-events: none; } } &::before { diff --git a/plugins/love-resources/src/components/ParticipantView.svelte b/plugins/love-resources/src/components/ParticipantView.svelte index e7f69a4a50..4fc72fd348 100644 --- a/plugins/love-resources/src/components/ParticipantView.svelte +++ b/plugins/love-resources/src/components/ParticipantView.svelte @@ -38,15 +38,16 @@ easing: elasticInOut }) - export function appendChild (track: HTMLMediaElement): void { + export function appendChild (track: HTMLMediaElement, enabled: boolean = true): void { const video = parent.querySelector('.video') if (video != null) { video.remove() } track.classList.add('video') + if (!enabled) track.classList.add('hidden') parent.appendChild(track) - activeTrack = true + activeTrack = enabled } export function setTrackMuted (value: boolean): void { @@ -66,7 +67,7 @@ $: speach = $currentRoomAudioLevels.get(_id as Ref) ?? 0 let tspeach: number = 0 $: if ((speach > 0 && speach > tspeach) || (tspeach > 0 && speach <= 0)) { - void speakers.set(speach > 0.3 ? 0.3 : speach, { duration: 50, easing: elasticInOut }) + void speakers.set(speach > 0.5 ? 0.5 : speach, { duration: 50, easing: elasticInOut }) } speakers.subscribe((sp) => { tspeach = sp > 0 ? sp : 0 @@ -75,6 +76,10 @@
+
+
+ +
{formatName(name)}
@@ -82,11 +87,6 @@ {#if connecting}{/if} {#if muted}{/if}
-
-
- -
-