tangled
alpha
login
or
join now
dragon.gal
/
consolesky
4
fork
atom
Multicolumn Bluesky client powered by Angular
4
fork
atom
overview
issues
3
pulls
pipelines
fix: youtube-player display in auxbar
kbenlloch
11 months ago
b4570826
b0fb5cb9
+19
-1
2 changed files
expand all
collapse all
unified
split
src
app
components
embeds
external-embed
external-embed.component.html
external-embed.component.ts
+1
-1
src/app/components/embeds/external-embed/external-embed.component.html
···
52
52
@if (snippet.source == YoutubeSnippetSource) {
53
53
<youtube-player
54
54
[videoId]="snippet.url"
55
55
-
class="aspect-video"
55
55
+
class="block aspect-video w-full max-w-full min-w-0"
56
56
(click)="$event.stopPropagation()"
57
57
/>
58
58
} @else {
+18
src/app/components/embeds/external-embed/external-embed.component.ts
···
31
31
height: auto;
32
32
width: 100%;
33
33
}
34
34
+
:host ::ng-deep youtube-player iframe {
35
35
+
display: flex;
36
36
+
min-width: 0;
37
37
+
min-height: 0;
38
38
+
height: 100%;
39
39
+
width: 100%;
40
40
+
}
41
41
+
:host ::ng-deep youtube-player > div {
42
42
+
display: contents;
43
43
+
}
44
44
+
:host ::ng-deep youtube-player youtube-player-placeholder {
45
45
+
width: 100% !important;
46
46
+
height: auto !important;
47
47
+
aspect-ratio: 16 / 9;
48
48
+
}
49
49
+
:host ::ng-deep youtube-player youtube-player-placeholder .youtube-player-placeholder-button {
50
50
+
cursor: pointer;
51
51
+
}
34
52
`,
35
53
changeDetection: ChangeDetectionStrategy.OnPush
36
54
})