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))]]