收口个人中心昵称输入组件

迁移昵称弹窗输入框到 PlatformTextField 暗色表单

保留新昵称 label 语义和 Enter 提交行为

补充昵称弹窗公共输入断言

更新 PlatformUiKit 文档和 Hermes 决策记录
This commit is contained in:
2026-06-10 12:13:54 +08:00
parent 0f5e0114a9
commit c1905d52ac
4 changed files with 44 additions and 2 deletions

View File

@@ -2818,7 +2818,7 @@ function ProfileNicknameModal({
<div className="px-5 py-5">
<label className="block">
<span className="sr-only"></span>
<input
<PlatformTextField
autoFocus
value={value}
onChange={(event) => onChange(event.target.value)}
@@ -2829,7 +2829,10 @@ function ProfileNicknameModal({
}
}}
maxLength={20}
className="w-full rounded-2xl border border-white/12 bg-white/10 px-4 py-3 text-base font-semibold text-[var(--platform-text-strong)] outline-none transition focus:border-[var(--platform-surface-hover-border)]"
surface="editorDark"
size="lg"
density="roomy"
className="rounded-2xl border-white/12 bg-white/10 text-[var(--platform-text-strong)] focus:border-[var(--platform-surface-hover-border)]"
placeholder="输入新昵称"
/>
</label>