@streamscloud/embeddable 6.2.0 → 6.2.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.
@@ -73,6 +73,9 @@ const selectCategory = (categoryId) => {
73
73
  return;
74
74
  }
75
75
  if (selectedCategoryId === categoryId) {
76
+ if (overviewOpened) {
77
+ overviewOpened = false;
78
+ }
76
79
  return;
77
80
  }
78
81
  switch (mediaCenterMode) {
@@ -192,14 +195,14 @@ const onScrollMounted = (node) => {
192
195
  class:media-center__scroll--has-both={scrollHasRight && scrollHasLeft}
193
196
  use:onScrollMounted
194
197
  onscroll={updateScrollShadows}>
195
- <button type="button" class="media-center__overview-button" onclick={toggleOverview}>
198
+ <button type="button" class="media-center__overview-button" class:media-center__overview-button--active={overviewOpened} onclick={toggleOverview}>
196
199
  <Icon src={IconTextColumnThree} />
197
200
  </button>
198
201
  {#each categories as category (category.id)}
199
202
  <button
200
203
  type="button"
201
204
  class="media-center__category-button"
202
- class:media-center__category-button--active={selectedCategoryId === category.id}
205
+ class:media-center__category-button--active={!overviewOpened && selectedCategoryId === category.id}
203
206
  title={category.name}
204
207
  onclick={() => selectCategory(category.id)}>{category.name}</button>
205
208
  {/each}
@@ -213,14 +216,18 @@ const onScrollMounted = (node) => {
213
216
  </div>
214
217
  {/snippet}
215
218
  <div class="media-center__overview-dropdown-content">
216
- <button type="button" class="media-center__category-button media-center__category-button--dropdown" onclick={toggleOverview}>
219
+ <button
220
+ type="button"
221
+ class="media-center__category-button media-center__category-button--dropdown"
222
+ class:media-center__category-button--active={overviewOpened}
223
+ onclick={toggleOverview}>
217
224
  {localization.overviewLabel}
218
225
  </button>
219
226
  {#each categories as category (category.id)}
220
227
  <button
221
228
  type="button"
222
229
  class="media-center__category-button media-center__category-button--dropdown"
223
- class:media-center__category-button--active={selectedCategoryId === category.id}
230
+ class:media-center__category-button--active={!overviewOpened && selectedCategoryId === category.id}
224
231
  title={category.name}
225
232
  onclick={() => selectCategory(category.id)}>{category.name}</button>
226
233
  {/each}
@@ -319,12 +326,21 @@ const onScrollMounted = (node) => {
319
326
  pointer-events: auto;
320
327
  padding: 0.375rem 0.75rem;
321
328
  line-height: 0;
329
+ white-space: nowrap;
330
+ flex: 0 0 auto;
322
331
  border-radius: 0.875rem;
323
332
  background-color: rgba(0, 0, 0, 0.6);
324
333
  color: #f2f2f2;
325
334
  transition: background 0.3s ease-in-out;
326
- white-space: nowrap;
327
- flex: 0 0 auto;
335
+ -webkit-user-drag: none;
336
+ user-select: none;
337
+ }
338
+ .media-center__overview-button :global([contenteditable]) {
339
+ user-select: text;
340
+ }
341
+ .media-center__overview-button--active {
342
+ background-color: rgba(255, 255, 255, 0.9);
343
+ color: #000000;
328
344
  }
329
345
  .media-center__overview-button:hover:not(.media-center__overview-button--active) {
330
346
  background-color: rgba(0, 0, 0, 0.9);
@@ -338,20 +354,25 @@ const onScrollMounted = (node) => {
338
354
  width: auto;
339
355
  max-width: none;
340
356
  min-width: 0;
357
+ scroll-snap-align: start;
358
+ flex: 0 0 auto;
341
359
  border-radius: 0.875rem;
342
360
  background-color: rgba(0, 0, 0, 0.6);
343
361
  color: #f2f2f2;
344
362
  transition: background 0.3s ease-in-out;
345
- scroll-snap-align: start;
346
- flex: 0 0 auto;
363
+ -webkit-user-drag: none;
364
+ user-select: none;
347
365
  }
348
- .media-center__category-button:hover:not(.media-center__category-button--active) {
349
- background-color: rgba(0, 0, 0, 0.9);
366
+ .media-center__category-button :global([contenteditable]) {
367
+ user-select: text;
350
368
  }
351
369
  .media-center__category-button--active {
352
370
  background-color: rgba(255, 255, 255, 0.9);
353
371
  color: #000000;
354
372
  }
373
+ .media-center__category-button:hover:not(.media-center__category-button--active) {
374
+ background-color: rgba(0, 0, 0, 0.9);
375
+ }
355
376
  .media-center__category-button--dropdown {
356
377
  width: max-content;
357
378
  }
@@ -79,6 +79,7 @@ let { shortVideo, aspectRatio = 9 / 16, on } = $props();
79
79
  gap: 0.3125em;
80
80
  --icon--size: 1.25em;
81
81
  --icon--color: #ffffff;
82
+ --icon--filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.2));
82
83
  }
83
84
  .short-video-card__text {
84
85
  font-weight: 500;
@@ -109,6 +109,7 @@ const changeShowAttachments = () => {
109
109
  overflow-y: auto;
110
110
  scrollbar-color: transparent transparent;
111
111
  scrollbar-width: thin;
112
+ scrollbar-gutter: stable;
112
113
  }
113
114
  .short-videos-player-controls__right::-webkit-scrollbar {
114
115
  width: 3px;
@@ -148,7 +149,6 @@ const changeShowAttachments = () => {
148
149
  height: var(--short-videos-player--media-center-header--height);
149
150
  min-height: var(--short-videos-player--media-center-header--height);
150
151
  max-height: var(--short-videos-player--media-center-header--height);
151
- min-height: 4.375rem;
152
152
  display: flex;
153
153
  justify-content: center;
154
154
  align-items: center;
@@ -11,7 +11,7 @@ export class ShortVideosPlayerUiManager {
11
11
  `--short-videos-player--controls--available-space: ${(this._viewTotalWidth - this._mainViewColumnWidth) / 2}px`,
12
12
  `--short-videos-player--controls--padding: ${this._mediaCenterHeaderHeight ? 0 : CONTROLS_PADDING_VERTICAL}px ${CONTROLS_PADDING_HORIZONTAL}px ${CONTROLS_PADDING_VERTICAL}px`,
13
13
  `--short-videos-player--icon--size: ${ICON_SIZE}px`,
14
- `--short-videos-player--media-center-header--height: ${this._mediaCenterHeaderHeight}px`,
14
+ `--short-videos-player--media-center-header--height: ${this._mediaCenterHeaderHeight || 72}px`,
15
15
  `--short-videos-player--padding: ${this._mediaCenterHeaderHeight ? this._mediaCenterHeaderHeight : PLAYER_PADDING_VERTICAL}px 0 ${PLAYER_PADDING_VERTICAL}px`
16
16
  ];
17
17
  return values.join(';');
@@ -129,6 +129,7 @@ const changeShowShortVideoAttachments = () => {
129
129
  justify-content: space-between;
130
130
  align-items: flex-end;
131
131
  flex-direction: column;
132
+ scrollbar-gutter: stable;
132
133
  }
133
134
  .stream-player-controls__short-video-hub {
134
135
  gap: 2.5rem;
@@ -31,6 +31,7 @@ let { src, color = null } = $props();
31
31
  --_icon--color: var(--icon--color);
32
32
  --_icon--size: var(--icon--size, 1.25em);
33
33
  --_icon--stroke-width: var(--icon--stroke-width, 0);
34
+ --_icon--filter: var(--icon--filter, none);
34
35
  display: contents;
35
36
  }
36
37
  .icon--white {
@@ -79,6 +80,7 @@ let { src, color = null } = $props();
79
80
  display: inline-block;
80
81
  color: inherit;
81
82
  fill: var(--_icon--color, currentColor);
83
+ filter: var(--_icon--filter);
82
84
  height: var(--_icon--size);
83
85
  min-height: var(--_icon--size);
84
86
  max-height: var(--_icon--size);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/embeddable",
3
- "version": "6.2.0",
3
+ "version": "6.2.2",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",