@playpilot/tpi 8.33.1 → 8.33.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -9,9 +9,15 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
const { embeddable_url = '', onclose }: Props = $props()
|
|
12
|
+
|
|
13
|
+
let windowHeight = $state(window.innerHeight)
|
|
14
|
+
let windowWidth = $state(window.innerWidth)
|
|
15
|
+
let portrait = $derived(windowWidth < windowHeight)
|
|
12
16
|
</script>
|
|
13
17
|
|
|
14
|
-
<
|
|
18
|
+
<svelte:window bind:innerWidth={windowWidth} bind:innerHeight={windowHeight} />
|
|
19
|
+
|
|
20
|
+
<div class="overlay" class:portrait transition:fade={{ duration: 100 }}>
|
|
15
21
|
<YouTubeEmbed {embeddable_url} controls={['current-time', 'fullscreen', 'mute', 'play', 'progress']} />
|
|
16
22
|
|
|
17
23
|
<!-- svelte-ignore a11y_click_events_have_key_events -->
|
|
@@ -41,12 +47,18 @@
|
|
|
41
47
|
z-index: 1;
|
|
42
48
|
position: relative;
|
|
43
49
|
display: block;
|
|
44
|
-
width:
|
|
50
|
+
width: 95vmax;
|
|
45
51
|
height: auto;
|
|
52
|
+
max-height: 95vh;
|
|
46
53
|
aspect-ratio: 16/9;
|
|
47
54
|
box-shadow: 0 0 margin(4) rgba(255, 255, 255, 0.15);
|
|
48
55
|
background: black;
|
|
49
56
|
}
|
|
57
|
+
|
|
58
|
+
&.portrait :global(.plyr) {
|
|
59
|
+
width: 95vw;
|
|
60
|
+
height: auto;
|
|
61
|
+
}
|
|
50
62
|
}
|
|
51
63
|
|
|
52
64
|
.backdrop {
|