@playpilot/tpi 8.23.0-beta.5 → 8.23.0-beta.6

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playpilot/tpi",
3
- "version": "8.23.0-beta.5",
3
+ "version": "8.23.0-beta.6",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -50,7 +50,7 @@
50
50
  }
51
51
 
52
52
  :global(button) {
53
- color: white;
53
+ color: theme(modal-close-text-color, white);
54
54
  }
55
55
  }
56
56
 
@@ -11,7 +11,7 @@
11
11
  import PlaylinksCompact from '../Playlinks/PlaylinksCompact.svelte'
12
12
  import PlaylinksDisclaimer from '../Playlinks/PlaylinksDisclaimer.svelte'
13
13
  import ModalCloseOverlay from './ModalCloseOverlay.svelte'
14
- import ParticipantsRail from '../Rails/ParticipantsRail.svelte'
14
+ import IconArrow from '../Icons/IconArrow.svelte'
15
15
 
16
16
  interface Props {
17
17
  titles: TitleData[],
@@ -49,7 +49,7 @@
49
49
  <Modal>
50
50
  {#snippet dialog()}
51
51
  <div class="slider">
52
- <TinySlider vertical threshold={100} moveThreshold={20} onchange={pauseAndPlay}>
52
+ <TinySlider vertical threshold={100} moveThreshold={10} onchange={pauseAndPlay}>
53
53
  {#snippet children({ currentIndex, setIndex })}
54
54
  {#each titles as title, index}
55
55
  <!-- svelte-ignore a11y_click_events_have_key_events -->
@@ -66,8 +66,6 @@
66
66
  <div class="details">
67
67
  <Description text={title.description!} blurb={title.blurb} limit={80} />
68
68
 
69
- <ParticipantsRail {title} heading="" />
70
-
71
69
  <div class="playlinks-heading" use:heading={3}>{t('Where To Stream Online')}</div>
72
70
 
73
71
  <PlaylinksCompact playlinks={title.providers} size={24} />
@@ -79,6 +77,12 @@
79
77
  <TitleBackground {title} useVideoBackground autoplay={false} inline />
80
78
 
81
79
  <div class="gradient"></div>
80
+
81
+ {#if index === 0 && currentIndex === 0}
82
+ <div class="arrow">
83
+ <IconArrow direction="down" size={24} />
84
+ </div>
85
+ {/if}
82
86
  {/if}
83
87
  </div>
84
88
  {/each}
@@ -92,18 +96,20 @@
92
96
  </div>
93
97
 
94
98
  <style lang="scss">
95
- $modal-height: calc(100dvh - margin(4.5));
99
+ $modal-height: calc(100vh - margin(4.5));
96
100
  $item-height: calc($modal-height - margin(7));
97
101
 
98
102
  .reel {
99
103
  --playpilot-detail-background-height: #{$item-height};
100
104
  --playpilot-detail-background-border-radius: 0;
101
105
  --playpilot-detail-background-width: 400%;
102
- --playpilot-detail-backdrop: rgba(0, 0, 0, 0.85);
103
- --playpilot-description-max-height: 40dvh;
106
+ --playpilot-detail-backdrop: black;
107
+ --playpilot-description-max-height: 40vh;
108
+ --playpilot-modal-close-text-color: rgba(255, 255, 255, 0.75);
104
109
 
105
110
  :global(*) {
106
111
  box-sizing: border-box;
112
+ overscroll-behavior: contain;
107
113
  }
108
114
 
109
115
  :global(iframe) {
@@ -117,7 +123,7 @@
117
123
  }
118
124
 
119
125
  .slider {
120
- margin-top: calc(100dvh - $modal-height);
126
+ margin-top: calc(100vh - $modal-height);
121
127
  height: $modal-height;
122
128
  width: 100%;
123
129
  }
@@ -127,6 +133,7 @@
127
133
  width: 100dvw;
128
134
  height: $item-height;
129
135
  background: theme(detail-background, light);
136
+ border-bottom: 1px solid theme(reel-modal-item-border, content);
130
137
  overflow: hidden;
131
138
  }
132
139
 
@@ -188,4 +195,25 @@
188
195
  height: margin(7);
189
196
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
190
197
  }
198
+
199
+ @keyframes wiggle {
200
+ 90%,
201
+ 100% {
202
+ transform: translateX(-50%);
203
+ }
204
+
205
+ 95% {
206
+ transform: translateX(-50%) translateY(margin(0.5));
207
+ }
208
+ }
209
+
210
+ .arrow {
211
+ z-index: 1;
212
+ position: absolute;
213
+ bottom: margin(1);
214
+ left: 50%;
215
+ transform: translateX(-50%);
216
+ animation: wiggle 5000ms infinite ease-out;
217
+ color: theme(detail-text-color, text-color);
218
+ }
191
219
  </style>