Loop videos, set width
Some checks are pending
continuous-integration/drone/push Build is running

This commit is contained in:
asonix 2023-08-28 21:26:14 -05:00
parent 6e0d60d854
commit d23ef5f64d
3 changed files with 4 additions and 3 deletions

View file

@ -8,7 +8,7 @@ services:
- ./volumes/pictrs:/mnt
pictrs-admin:
image: asonix/pictrs-admin:0.1.0
image: asonix/pictrs-admin:0.1
ports:
- "8084:8084"
restart: always

View file

@ -48,7 +48,8 @@ article {
max-width: 100%;
}
img {
img,
video {
border-radius: 3px 3px 0 0;
display: block;
width: 100%;

View file

@ -41,7 +41,7 @@
@if let Some(src) = hash.media_link() {
<div class="image-box">
@if let Some(video_type) = hash.video_type() {
<video controls src="@src" type="@video_type"></video>
<video controls loop src="@src" type="@video_type"></video>
} else {
<img src="@src" />
}