From b88921a03007652d91eacfd31606813c8625964b Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Mon, 13 Jul 2026 09:29:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(prototype):=20ui-desktop=20=E8=A1=A5=20[hid?= =?UTF-8?q?den]=20display:none=20=E5=AE=88=E5=8D=AB=E2=80=94=E2=80=94?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=9D=99=E6=80=81=E5=B1=8F=20signup=20?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E4=B8=8D=E5=86=8D=E4=B8=8E=20signin=20?= =?UTF-8?q?=E5=B9=B6=E6=8E=92=E6=BA=A2=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .login-form{display:flex} 作者样式覆盖了 hidden 属性的 UA display:none,致带 hidden 的 signupForm 被顶出来与 signin 并排、溢出 760px 分屏卡被裁。补 ui-mobile.html:93 同款 [hidden]{display:none!important} 全局守卫;已审计全部 hidden 元素均用 .hidden 属性切换, 无 style.display 依赖冲突。 Co-Authored-By: Claude Opus 4.8 (1M context) --- design/prototype/screens/ui-desktop.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/design/prototype/screens/ui-desktop.html b/design/prototype/screens/ui-desktop.html index 96fae10..3ae919c 100644 --- a/design/prototype/screens/ui-desktop.html +++ b/design/prototype/screens/ui-desktop.html @@ -294,6 +294,9 @@ background:var(--bg-subtle); border:1px solid var(--border); border-radius:var(--radius-sm); padding:1px 6px; } .frame-note{ font-size:var(--text-caption); color:var(--fg3); font-weight:400; } + /* hidden 属性必须赢过任何作者 display 规则(ui-mobile.html:93 同款守卫)—— + 否则 .login-form{display:flex} 会把带 hidden 的 signupForm 顶出来,与 signin 并排溢出卡片 */ + [hidden]{ display:none !important; } /* 登录分屏卡 */ .login-win{ width:760px; max-width:100%; margin:0 auto; height:460px; display:flex; border-radius:16px; overflow:hidden;