diff options
| author | Eltrac <hi@guhub.cn> | 2025-09-17 22:13:07 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-09-17 22:13:07 +0800 |
| commit | 2814fdb8d42ec644fbce975c2c7c7c98d4283456 (patch) | |
| tree | ebf00d7a053232f4412466943219235bc8b521d7 | |
| parent | 418aa1702a718b08c415d98b751563c5b2580bb1 (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.
| -rw-r--r-- | layouts/_partials/scripts/libra-js.html | 2 |
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> |
