From 6b62af87271ebd344d34803e46cdfb2b1c1ebd82 Mon Sep 17 00:00:00 2001 From: arne Date: Tue, 18 Nov 2025 21:45:59 +0100 Subject: [PATCH] Fix video dimensions on mobile --- public/index.html | 3 ++- src/computersandblues/lodestone/app.cljs | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index 4ac0008..2568fa1 100644 --- a/public/index.html +++ b/public/index.html @@ -49,7 +49,8 @@ margin-bottom: 6px; } - img { + img, + video { max-width: 100%; height: auto; } diff --git a/src/computersandblues/lodestone/app.cljs b/src/computersandblues/lodestone/app.cljs index d83198f..3b8baa2 100644 --- a/src/computersandblues/lodestone/app.cljs +++ b/src/computersandblues/lodestone/app.cljs @@ -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))]]