Imagine 瀑布流
-通过 WebSocket 持续生成图片,实时展示 base64 瀑布流。
-Imagine 瀑布流
+通过 WebSocket 持续生成图片,实时展示 base64 瀑布流。
+diff --git a/.gitignore b/.gitignore index 7b897ce..dd347e5 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,4 @@ htmlcov/ # Project specific config.local.toml +data/config.toml diff --git a/app/static/public/js/imagine.js b/app/static/public/js/imagine.js index 1bcc5b0..b8eb65e 100644 --- a/app/static/public/js/imagine.js +++ b/app/static/public/js/imagine.js @@ -191,8 +191,8 @@ setLightboxKeyboardShift(0); return; } - const overlap = Math.max(0, window.innerHeight - vv.height - vv.offsetTop); - const shift = overlap > 0 ? Math.min(280, overlap + 12) : 0; + const overlap = Math.max(0, lightbox.clientHeight - vv.height - vv.offsetTop); + const shift = overlap > 0 ? Math.min(340, overlap + 12) : 0; setLightboxKeyboardShift(shift); } diff --git a/app/static/public/pages/imagine.html b/app/static/public/pages/imagine.html index 4780d18..fcfcc99 100644 --- a/app/static/public/pages/imagine.html +++ b/app/static/public/pages/imagine.html @@ -3,7 +3,8 @@
- +通过 WebSocket 持续生成图片,实时展示 base64 瀑布流。
-通过 WebSocket 持续生成图片,实时展示 base64 瀑布流。
+