@streamscloud/embeddable 2.2.3 → 2.2.5
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/dist/short-videos/short-video-viewer/cmp.short-video-heading.svelte +5 -1
- package/dist/short-videos/short-video-viewer/description.svelte +5 -0
- package/dist/short-videos/short-videos-player/cmp.short-videos-player.svelte +1 -4
- package/dist/streams/stream-player/cmp.stream-player.svelte +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ const localization = $derived(new ShortVideoViewerLocalization(localizationInit)
|
|
|
14
14
|
<div class="short-video-heading__source-name">{model.name}</div>
|
|
15
15
|
<p class="short-video-heading__metadata">
|
|
16
16
|
<TimeAgo date={model.displayDate} localization={localization.timeAgoLocalization} />
|
|
17
|
-
{#if Number.isInteger(model.viewsCount)}
|
|
17
|
+
{#if Number.isInteger(model.viewsCount) && model.viewsCount}
|
|
18
18
|
<span>·</span>
|
|
19
19
|
{localization.viewsCount(model.viewsCount)}
|
|
20
20
|
{/if}
|
|
@@ -36,7 +36,9 @@ const localization = $derived(new ShortVideoViewerLocalization(localizationInit)
|
|
|
36
36
|
.short-video-heading {
|
|
37
37
|
--_short-video-heading--container--font-size: var(--short-video-heading--container--font-size, 1em);
|
|
38
38
|
--_short-video-heading--text--color: var(--short-video-heading--text--color, #374151);
|
|
39
|
+
--_short-video-heading--text--shadow: var(--short-video-heading--text--shadow, 1px 1px hsl(0, 0%, 10%));
|
|
39
40
|
--_short-video-heading--meta--color: var(--short-video-heading--meta--color, #6b7280);
|
|
41
|
+
--_short-video-heading--meta--shadow: var(--short-video-heading--meta--shadow, 1px 1px hsl(0, 0%, 10%));
|
|
40
42
|
--_short-video-heading--padding: var(--short-video-heading--padding, 0);
|
|
41
43
|
display: flex;
|
|
42
44
|
align-items: center;
|
|
@@ -66,6 +68,7 @@ const localization = $derived(new ShortVideoViewerLocalization(localizationInit)
|
|
|
66
68
|
line-height: 1.25em;
|
|
67
69
|
font-weight: 500;
|
|
68
70
|
color: var(--_short-video-heading--text--color);
|
|
71
|
+
text-shadow: var(--_short-video-heading--text--shadow);
|
|
69
72
|
text-overflow: ellipsis;
|
|
70
73
|
width: 100%;
|
|
71
74
|
white-space: nowrap;
|
|
@@ -80,6 +83,7 @@ const localization = $derived(new ShortVideoViewerLocalization(localizationInit)
|
|
|
80
83
|
line-height: 1.2em;
|
|
81
84
|
font-weight: 400;
|
|
82
85
|
color: var(--_short-video-heading--meta--color);
|
|
86
|
+
text-shadow: var(--_short-video-heading--meta--shadow);
|
|
83
87
|
}
|
|
84
88
|
:global([data-theme="dark"]) .short-video-heading__metadata {
|
|
85
89
|
--_short-video-heading--meta--color: var(--short-video-heading--meta--color, #d1d5db);
|
|
@@ -27,7 +27,9 @@ let { model, localization } = $props();
|
|
|
27
27
|
}
|
|
28
28
|
.short-video-description {
|
|
29
29
|
--_short-video-viewer--description--font--primary-color: var(--short-video-viewer--description--font--primary-color);
|
|
30
|
+
--_short-video-viewer--description--font--primary-shadow: var(--short-video-viewer--description--font--primary-shadow, 1px 1px hsl(0, 0%, 10%));
|
|
30
31
|
--_short-video-viewer--description--font--secondary-color: var(--short-video-viewer--description--font--secondary-color);
|
|
32
|
+
--_short-video-viewer--description--font--secondary-shadow: var(--short-video-viewer--description--font--secondary-shadow, 1px 1px hsl(0, 0%, 10%));
|
|
31
33
|
display: flex;
|
|
32
34
|
flex-direction: column;
|
|
33
35
|
padding-top: 0.75rem;
|
|
@@ -35,10 +37,13 @@ let { model, localization } = $props();
|
|
|
35
37
|
.short-video-description__heading {
|
|
36
38
|
--short-video-heading--padding: 0 0 0.875rem 0;
|
|
37
39
|
--short-video-heading--text--color: var(--_short-video-viewer--description--font--primary-color);
|
|
40
|
+
--short-video-heading--text--shadow: var(--_short-video-viewer--description--font--primary-shadow);
|
|
38
41
|
--short-video-heading--meta--color: var(--_short-video-viewer--description--font--secondary-color);
|
|
42
|
+
--short-video-heading--meta--shadow: var(--_short-video-viewer--description--font--secondary-shadow);
|
|
39
43
|
}
|
|
40
44
|
.short-video-description__text {
|
|
41
45
|
color: var(--_short-video-viewer--description--font--primary-color);
|
|
46
|
+
text-shadow: var(--_short-video-viewer--description--font--primary-shadow);
|
|
42
47
|
font-size: 0.9375rem;
|
|
43
48
|
line-height: 1.25rem;
|
|
44
49
|
font-weight: 400;
|
|
@@ -107,12 +107,9 @@ const onPlayerClose = () => {
|
|
|
107
107
|
<PlayerSlider buffer={buffer}>
|
|
108
108
|
{#snippet children({ item })}
|
|
109
109
|
<ShortVideoViewer model={item} autoplay="on-appearance" showAttachments={uiManager.showShortVideoOverlay} />
|
|
110
|
-
{#if uiManager.isMobileView && !everTouched}
|
|
111
|
-
<SwipeIndicator />
|
|
112
|
-
{/if}
|
|
113
110
|
{/snippet}
|
|
114
111
|
</PlayerSlider>
|
|
115
|
-
{#if uiManager.isMobileView && !everTouched}
|
|
112
|
+
{#if uiManager.isMobileView && buffer.loaded.length > 1 && !everTouched}
|
|
116
113
|
<SwipeIndicator />
|
|
117
114
|
{/if}
|
|
118
115
|
</div>
|
|
@@ -202,7 +202,7 @@ const onProgress = (pageId, videoId, progress) => {
|
|
|
202
202
|
{/if}
|
|
203
203
|
{/snippet}
|
|
204
204
|
</PlayerSlider>
|
|
205
|
-
{#if uiManager.isMobileView && !everTouched}
|
|
205
|
+
{#if uiManager.isMobileView && buffer.loaded.length > 1 && !everTouched}
|
|
206
206
|
<SwipeIndicator />
|
|
207
207
|
{/if}
|
|
208
208
|
</div>
|