Handle video content for mobile views

This commit is contained in:
Christian Wolf 2024-01-07 11:53:49 +01:00
parent b3c46080af
commit 7642b6ac29
3 changed files with 11 additions and 1 deletions

View File

@ -595,6 +595,14 @@ h1 {
}
}
.youtube-video {
max-width: 100%;
}
.internal-video {
max-width: 100%;
}
:root {
--color-vhvorne: #ddcb55;
--color-vhmitte: #c98879;

View File

@ -2,6 +2,7 @@
{{ with .Get "poster" }}poster="{{ . }}"{{ end }}
{{ with .Get "width" }}width="{{ . }}"{{ end }}
{{ with .Get "height" }}height="{{ . }}"{{ end }}
class="internal-video"
>
<source
{{ with .Get "type" }}type="{{ . }}"{{ end }}

View File

@ -5,5 +5,6 @@
title="{{ with .Get "title" }}{{ . }}{{ else }}YouTube video player{{ end }}"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen>
allowfullscreen
class="youtube-video">
</iframe>