tangled
alpha
login
or
join now
flo-bit.dev
/
blento
21
fork
atom
your personal website on atproto - mirror
blento.app
21
fork
atom
overview
issues
pulls
pipelines
switch youtube video default to show inline
Florian
2 months ago
c51a1b3a
16a8feff
+4
-2
2 changed files
expand all
collapse all
unified
split
src
lib
cards
YoutubeVideoCard
YoutubeCardSettings.svelte
index.ts
+2
-2
src/lib/cards/YoutubeVideoCard/YoutubeCardSettings.svelte
···
8
8
<div class="flex items-center space-x-2">
9
9
<Checkbox
10
10
bind:checked={
11
11
-
() => Boolean(item.cardData.showInline), (val) => (item.cardData.showInline = val)
11
11
+
() => !item.cardData.showInline, (val) => (item.cardData.showInline = !val)
12
12
}
13
13
id="show-inline"
14
14
aria-labelledby="show-inline-label"
···
19
19
for="show-inline"
20
20
class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
21
21
>
22
22
-
Show video in card
22
22
+
Show fullscreen
23
23
</Label>
24
24
</div>
+2
src/lib/cards/YoutubeVideoCard/index.ts
···
23
23
item.cardData.poster = posterURL;
24
24
item.cardData.youtubeId = id;
25
25
item.cardData.href = url;
26
26
+
item.cardData.showInline = true;
26
27
27
28
item.w = 4;
28
29
item.mobileW = 8;
···
46
47
47
48
item.cardData.poster = posterURL;
48
49
item.cardData.youtubeId = id;
50
50
+
item.cardData.showInline ??= true;
49
51
50
52
return item;
51
53
},