tangled
alpha
login
or
join now
dunkirk.sh
/
pstream-ng
1
fork
atom
pstream is dead; long live pstream
taciturnaxolotl.github.io/pstream-ng/
1
fork
atom
overview
issues
pulls
pipelines
add carousel gradients to episode selector
Pas
10 months ago
c77a4d2e
648df78a
+40
-41
5 changed files
expand all
collapse all
unified
split
src
assets
css
index.css
components
overlays
DetailsModal.tsx
player
atoms
Episodes.tsx
pages
discover
discover.css
discoverContent.tsx
+38
src/assets/css/index.css
···
251
251
.jiggle {
252
252
animation: jiggle 0.25s infinite;
253
253
}
254
254
+
255
255
+
.carousel-container {
256
256
+
position: relative;
257
257
+
mask-image: linear-gradient(
258
258
+
to right,
259
259
+
rgba(0, 0, 0, 0), /* Left edge */
260
260
+
rgba(0, 0, 0, 1) 80px, /* visible after 80px */
261
261
+
rgba(0, 0, 0, 1) calc(100% - 80px), /* invisible 80px from right */
262
262
+
rgba(0, 0, 0, 0) 100% /* Right edge */
263
263
+
);
264
264
+
-webkit-mask-image: linear-gradient(
265
265
+
to right,
266
266
+
rgba(0, 0, 0, 0),
267
267
+
rgba(0, 0, 0, 1) 80px,
268
268
+
rgba(0, 0, 0, 1) calc(100% - 80px),
269
269
+
rgba(0, 0, 0, 0) 100%
270
270
+
);
271
271
+
z-index: 1;
272
272
+
}
273
273
+
274
274
+
@media (max-width: 768px) {
275
275
+
.carousel-container {
276
276
+
mask-image: linear-gradient(
277
277
+
to right,
278
278
+
rgba(0, 0, 0, 0), /* Left edge */
279
279
+
rgba(0, 0, 0, 1) 20px, /* visible after 80px */
280
280
+
rgba(0, 0, 0, 1) calc(100% - 20px), /* invisible 80px from right */
281
281
+
rgba(0, 0, 0, 0) 100% /* Right edge */
282
282
+
);
283
283
+
-webkit-mask-image: linear-gradient(
284
284
+
to right,
285
285
+
rgba(0, 0, 0, 0),
286
286
+
rgba(0, 0, 0, 1) 20px,
287
287
+
rgba(0, 0, 0, 1) calc(100% - 20px),
288
288
+
rgba(0, 0, 0, 0) 100%
289
289
+
);
290
290
+
}
291
291
+
}
+1
-1
src/components/overlays/DetailsModal.tsx
···
582
582
583
583
<div
584
584
ref={carouselRef}
585
585
-
className="flex overflow-x-auto space-x-4 pb-4 pt-2 lg:px-12 scrollbar-hide"
585
585
+
className="flex overflow-x-auto space-x-4 pb-4 pt-2 lg:px-12 scrollbar-hide carousel-container"
586
586
style={{
587
587
scrollbarWidth: "none",
588
588
msOverflowStyle: "none",
+1
-1
src/components/player/atoms/Episodes.tsx
···
196
196
197
197
<div
198
198
ref={carouselRef}
199
199
-
className="flex flex-col lg:flex-row lg:overflow-x-auto space-y-3 sm:space-y-4 lg:space-y-0 lg:space-x-4 pb-4 pt-2 lg:px-12 scrollbar-hide"
199
199
+
className="flex flex-col lg:flex-row lg:overflow-x-auto space-y-3 sm:space-y-4 lg:space-y-0 lg:space-x-4 pb-4 pt-2 lg:px-12 scrollbar-hide carousel-container"
200
200
style={{
201
201
scrollbarWidth: "none",
202
202
msOverflowStyle: "none",
-38
src/pages/discover/discover.css
···
1
1
-
.carousel-container {
2
2
-
position: relative;
3
3
-
mask-image: linear-gradient(
4
4
-
to right,
5
5
-
rgba(0, 0, 0, 0), /* Left edge */
6
6
-
rgba(0, 0, 0, 1) 80px, /* visible after 80px */
7
7
-
rgba(0, 0, 0, 1) calc(100% - 80px), /* invisible 80px from right */
8
8
-
rgba(0, 0, 0, 0) 100% /* Right edge */
9
9
-
);
10
10
-
-webkit-mask-image: linear-gradient(
11
11
-
to right,
12
12
-
rgba(0, 0, 0, 0),
13
13
-
rgba(0, 0, 0, 1) 80px,
14
14
-
rgba(0, 0, 0, 1) calc(100% - 80px),
15
15
-
rgba(0, 0, 0, 0) 100%
16
16
-
);
17
17
-
z-index: 1;
18
18
-
}
19
19
-
20
20
-
@media (max-width: 768px) {
21
21
-
.carousel-container {
22
22
-
mask-image: linear-gradient(
23
23
-
to right,
24
24
-
rgba(0, 0, 0, 0), /* Left edge */
25
25
-
rgba(0, 0, 0, 1) 20px, /* visible after 80px */
26
26
-
rgba(0, 0, 0, 1) calc(100% - 20px), /* invisible 80px from right */
27
27
-
rgba(0, 0, 0, 0) 100% /* Right edge */
28
28
-
);
29
29
-
-webkit-mask-image: linear-gradient(
30
30
-
to right,
31
31
-
rgba(0, 0, 0, 0),
32
32
-
rgba(0, 0, 0, 1) 20px,
33
33
-
rgba(0, 0, 0, 1) calc(100% - 20px),
34
34
-
rgba(0, 0, 0, 0) 100%
35
35
-
);
36
36
-
}
37
37
-
}
38
38
-
39
1
h2 {
40
2
position: relative;
41
3
z-index: 2;
-1
src/pages/discover/discoverContent.tsx
···
15
15
import { conf } from "@/setup/config";
16
16
import { MediaItem } from "@/utils/mediaTypes";
17
17
18
18
-
import "./discover.css";
19
18
import { CategoryButtons } from "./components/CategoryButtons";
20
19
import { LazyMediaCarousel } from "./components/LazyMediaCarousel";
21
20
import { LazyTabContent } from "./components/LazyTabContent";