summaryrefslogtreecommitdiffci
path: root/internal
diff options
from:
to:
context:
space:
mode:
authorGravatar SayaAndy <saya.andy@posteo.com> 2025-10-21 10:09:05 +0700
committerGravatar SayaAndy <saya.andy@posteo.com> 2025-10-21 10:09:05 +0700
commit695889f42896c1e3f1290a588ac1c5483d0124f0 (patch)
tree201d21e0bd732c42941a9408390eba0573a99f18 /internal
parent4ca6123336fd3c8940ec0057190ea8adc98dccd7 (diff)
downloadweb-695889f42896c1e3f1290a588ac1c5483d0124f0.tar.gz
web-695889f42896c1e3f1290a588ac1c5483d0124f0.zip
fix: minimize chance of masonry getting broken
Diffstat (limited to 'internal')
-rw-r--r--internal/glightbox/html_renderer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/glightbox/html_renderer.go b/internal/glightbox/html_renderer.go
index deafb4d..7022793 100644
--- a/internal/glightbox/html_renderer.go
+++ b/internal/glightbox/html_renderer.go
@@ -133,7 +133,7 @@ func (r *GLightboxHTMLRenderer) renderGLightbox(w util.BufWriter, source []byte,
}
w.WriteString(fmt.Sprintf(`
-<div class="justify-content-center display-block m-1">
+<div class="justify-content-center display-block">
<hr class="border-t-3 border-dotted border-main-hard mt-1 mb-2 w-[80%%] ml-auto mr-auto">
<div class="grid masonry-grid-%s mx-auto">
<div class="grid-sizer grid-sizer-%s"></div>
@@ -156,7 +156,7 @@ func (r *GLightboxHTMLRenderer) renderGLightbox(w util.BufWriter, source []byte,
function initMasonryLayout_%s(tm) {
clearTimeout(imgLoad_%s_timer);
- imgLoad_%s_timer = setTimeout(() => msnry_%s.layout(), 300);
+ imgLoad_%s_timer = setTimeout(() => msnry_%s.layout(), 100);
}
imgLoad_%s.on('progress', initMasonryLayout_%s);