diff options
| author | 2025-10-21 10:15:44 +0700 | |
|---|---|---|
| committer | 2025-10-21 10:15:44 +0700 | |
| commit | 69b868a7655a25c82ce4a2bd444812be69c8b998 (patch) | |
| tree | 201d21e0bd732c42941a9408390eba0573a99f18 /internal/glightbox/html_renderer.go | |
| parent | df20c871060ad88254f18d4a04f714edf59156f0 (diff) | |
| parent | 695889f42896c1e3f1290a588ac1c5483d0124f0 (diff) | |
| download | web-0.10.1.tar.gz web-0.10.1.zip | |
v0.10.1 (#16)v0.10.1
- [feat: lilac
theme](https://github.com/SayaAndy/saya-today-web/commit/1e2763ae476e99caa7ba4be22aa06dfa2f7c8bb8)
(made default)
- feat: center content even if toolbar is on the side
- [fix: minimize chance of masonry getting
broken](https://github.com/SayaAndy/saya-today-web/pull/16/commits/695889f42896c1e3f1290a588ac1c5483d0124f0)
Diffstat (limited to 'internal/glightbox/html_renderer.go')
| -rw-r--r-- | internal/glightbox/html_renderer.go | 4 |
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); |