From 7f263b2b14459d05777b830c841f72a7324b06eb Mon Sep 17 00:00:00 2001 From: Zonghao Yuan <64521992+zonghaoyuan@users.noreply.github.com> Date: Mon, 15 Jun 2026 13:16:01 +0800 Subject: [PATCH] fix(web): improve home page mobile compatibility (#80) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 消除移动端横向滑动:重构「载入剧情」按钮的负偏移定位为 right-0 锚定的操作集群 - 加固 overflow-x 兜底(wrapper 层 overflow-x-hidden) - 收住类别下拉面板宽度,避免靠右选择器展开时溢出 - 移动端质感优化:Header 图标适配、Hero 留白、提示框内边距、风格弹窗小屏布局 - 「载入剧情」按钮改毛玻璃半透明,避免打字机占位文字穿透 --- app/page.tsx | 68 ++++++++++++++++++++++++++++------------------------ 1 file changed, 37 insertions(+), 31 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index ea6ce6d..1d42bd0 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -828,7 +828,7 @@ function CategorySelect({ /> {open && ( -
+
{items.map((it, i) => ( void handleStoryImport(e.target.files?.[0])} /> - + {/* 右下操作集群:载入剧情 + 开始,统一锚定 right-0,杜绝 right-[-...] + 负偏移导致的移动端横向溢出。 */} +
+ + +
{storyImportError && (

@@ -1785,7 +1791,7 @@ export default function HomePage() { {/* 使用提示:可被用户永久关闭(localStorage:infiplot:hintClosed) */} {!hintClosed && ( -

+

输入想法、配置风格,点击「开始」即可游玩{AUTH_ENABLED && "(测试期间,登录即可免费畅玩)"};也可以从下方精选故事集挑一篇快速体验{" "} InfiPlot