Fix video dimensions on mobile

This commit is contained in:
arne 2025-11-18 21:45:59 +01:00
commit 6b62af8727
2 changed files with 3 additions and 3 deletions

View file

@ -49,7 +49,8 @@
margin-bottom: 6px;
}
img {
img,
video {
max-width: 100%;
height: auto;
}

View file

@ -302,8 +302,7 @@
"image" [:img {:src (:preview_url attachment)
:alt (:description attachment)
:lazy "lazy"}]
"video" [:video {:controls true
:width 480}
"video" [:video {:controls true}
[:source {:type (str "video/" (last (str/split (:remote_url attachment) #"\.")))
:src (:remote_url attachment)}]
[:a {:href (:remote_url attachment)} (str "Original video at " (:remote_url attachment))]]