summaryrefslogtreecommitdiff
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
commit374d78951b27df54eb0423b650a161c7a3216c73 (patch)
tree6e055d1bdc99699053a802a659c68e4611e5ea1d
parentf2fb7db4638dc4cb030da05a992962831f8d6f25 (diff)
fix: lightbox shifts vertically
Like last commit f2fb7db4638dc4cb030da05a992962831f8d6f25 [formerly 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. Former-commit-id: 2814fdb8d42ec644fbce975c2c7c7c98d4283456
-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>