summaryrefslogtreecommitdiff
path: root/layouts/_partials/scripts/libra-js.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-17 22:13:07 +0800
committerEltrac <hi@guhub.cn>2025-09-17 22:13:07 +0800
commit2814fdb8d42ec644fbce975c2c7c7c98d4283456 (patch)
treeebf00d7a053232f4412466943219235bc8b521d7 /layouts/_partials/scripts/libra-js.html
parent418aa1702a718b08c415d98b751563c5b2580bb1 (diff)
fix: lightbox shifts vertically
Like last commit 418aa1702a718b08c415d98b751563c5b2580bb1 , lightbox also shits slightly leftwards. Adding an offset can temporarily fix this. P.S. I just figured out I interchanged 'horizontally' and 'vertically' in the two commits. My bad.
Diffstat (limited to 'layouts/_partials/scripts/libra-js.html')
-rw-r--r--layouts/_partials/scripts/libra-js.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_partials/scripts/libra-js.html b/layouts/_partials/scripts/libra-js.html
index 07e0c0e6..0eea3d07 100644
--- a/layouts/_partials/scripts/libra-js.html
+++ b/layouts/_partials/scripts/libra-js.html
@@ -1,4 +1,4 @@
<script type="module">
import LightBox from '/js/libra.min.js';
- const lightbox = new LightBox({ offset: { y: -80 } });
+ const lightbox = new LightBox({ offset: { x: -8 ,y: -80 } });
</script>