Add video-only embed support and clean up widgets.js

This commit is contained in:
Zed 2026-08-10 20:17:14 +07:00
commit fe8f482d5c
4 changed files with 112 additions and 109 deletions

View file

@ -2,16 +2,20 @@
@import "_mixins";
.embed-video {
width: 100%;
background-color: black;
.gallery-video {
width: 100%;
height: 100%;
position: absolute;
background-color: black;
top: 0%;
left: 0%;
}
.gallery-video > .attachment {
max-height: unset;
width: 100%;
}
video {
width: 100%;
height: auto;
}
}

View file

@ -50,7 +50,7 @@ proc renderHead*(prefs: Prefs; cfg: Config; req: Request; titleText=""; desc="";
let opensearchUrl = getUrlPrefix(cfg) & "/opensearch"
buildHtml(head):
link(rel="stylesheet", type="text/css", href="/css/style.css?v=84")
link(rel="stylesheet", type="text/css", href="/css/style.css?v=85")
link(rel="stylesheet", type="text/css", href="/css/fontello.css?v=7")
if theme.len > 0: