Fix video dimensions on mobile
This commit is contained in:
parent
46a0766995
commit
6b62af8727
2 changed files with 3 additions and 3 deletions
|
|
@ -49,7 +49,8 @@
|
|||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
img {
|
||||
img,
|
||||
video {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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))]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue