fix(webui): clarify compact text hierarchy
Replace 145 scattered 10px and 11px declarations with semantic text roles across the dashboard, configuration, diagnostics, logs, and settings surfaces. Promote instructions, errors, interactive labels, and empty states to at least 12px, raise security-sensitive and destructive warnings to 14px, and make general-purpose badges readable by default. Keep compact sizing only for dense technical metadata such as timestamps, identifiers, paths, versions, and counters. Preserve the existing desktop density while improving Chinese text legibility and responsive behavior on narrow mobile layouts.
This commit is contained in:
30 files changed
+151
-151
No files matched your search
@@ -181,7 +181,7 @@ export function NoteConfigForm({ config, onChange }: FormProps) {
|
||||
placeholder="写点备注、待办或快捷信息…"
|
||||
className="h-40 resize-y rounded-lg bg-card/40 p-3 text-sm leading-relaxed"
|
||||
/>
|
||||
<span className="text-right text-[11px] text-muted-foreground">{c.text.length} / {NOTE_MAX}</span>
|
||||
<span className="text-right text-meta text-muted-foreground">{c.text.length} / {NOTE_MAX}</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -204,7 +204,7 @@ export function LinkConfigForm({ config, onChange }: FormProps) {
|
||||
onChange={(e) => onChange({ url: e.target.value })}
|
||||
className={cn('h-8', urlInvalid && 'border-destructive')}
|
||||
/>
|
||||
{urlInvalid && <span className="text-[11px] text-destructive">仅支持 http:// 或 https:// 链接</span>}
|
||||
{urlInvalid && <span className="text-xs text-destructive">仅支持 http:// 或 https:// 链接</span>}
|
||||
</label>
|
||||
<div className="flex flex-col gap-1.5">
|
||||
<span className="text-sm text-muted-foreground">图标</span>
|
||||
@@ -259,7 +259,7 @@ export function AccountConfigForm({ config, onChange }: FormProps) {
|
||||
<datalist id={listId}>
|
||||
{qqList.map((q) => <option key={q.uin} value={q.uin}>{q.nickname || q.uin}</option>)}
|
||||
</datalist>
|
||||
<span className="text-[11px] text-muted-foreground">可从已接入账号中选择,或手动输入。</span>
|
||||
<span className="text-xs text-muted-foreground">可从已接入账号中选择,或手动输入。</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user