aboutsummaryrefslogtreecommitdiff
path: root/src/mixins
diff options
context:
space:
mode:
authorPortableProgrammer <[email protected]>2025-01-11 16:47:27 +0000
committerPortableProgrammer <[email protected]>2025-01-11 16:47:27 +0000
commit5f75dc5f53255542dd00ef554bcb72357365d197 (patch)
tree40ffb895d2d1622c59d33aca40439a0190c72c01 /src/mixins
parent569b3281377e12578b8dcc742e7925b2e2e6950d (diff)
Minor image/gallery/link tweaks post-consolidation.
* Brings `comments` in line with `card` / `compact` gallery and `.image-viewer` styles. * Tweaks link positioning for `link` posts. * Force `video` scrubber previews to autoplay inline, mainly for mobile screens. * Adds `.image-viewer.main-content` style to handle media sizing and tweaks on `comments` view separate from `card` / `compact` views. * Switch to use `vmin` instead of `px` for `--border-radius-*` vars to properly scale across views and viewport sizes.
Diffstat (limited to 'src/mixins')
-rw-r--r--src/mixins/post.pug2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mixins/post.pug b/src/mixins/post.pug
index 4ec7614..472cab2 100644
--- a/src/mixins/post.pug
+++ b/src/mixins/post.pug
@@ -47,7 +47,7 @@ mixin post(p, currentUrl)
47 img(src=url onclick=onclick) 47 img(src=url onclick=onclick)
48 else if isPostVideo(p) 48 else if isPostVideo(p)
49 - var decodedVideos = decodePostVideoUrls(p) 49 - var decodedVideos = decodePostVideoUrls(p)
50 video(autoplay="" muted="" data-dashjs-player="" onclick=`toggleDetails('${p.id}')` poster=decodedVideos[4] width="100px" height="100px") 50 video(autoplay="" playsinline="" muted="" data-dashjs-player="" onclick=`toggleDetails('${p.id}')` poster=decodedVideos[4] width="100px" height="100px")
51 // Scrubber 51 // Scrubber
52 source(src=decodedVideos[3]) 52 source(src=decodedVideos[3])
53 else if isPostLink(p) 53 else if isPostLink(p)