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 @@ - + Grok2API - Imagine 瀑布流 @@ -28,12 +29,12 @@
-
-

Imagine 瀑布流

-

通过 WebSocket 持续生成图片,实时展示 base64 瀑布流。

-
+
+

Imagine 瀑布流

+

通过 WebSocket 持续生成图片,实时展示 base64 瀑布流。

+
-
+
@@ -43,7 +44,8 @@
- +
@@ -114,7 +116,8 @@
- - +
+
连接模式
+
+ + + +
+
+
+
图片数量
+
0
+
+
+
活跃任务
+
0
+
+
+
平均耗时
+
-
-
-
-
图片数量
-
0
-
-
-
活跃任务
-
0
-
-
-
平均耗时
-
-
-
@@ -210,7 +214,8 @@