feat(webui): apply Apple-style polish to processes + config pages

Carry the logs/settings visual language across the remaining pages:

- Processes: sort control becomes a segmented radiogroup; action banner
  gains a spinner; cards round to xl with a hover tint; calmer empty state.
- Config: save status collapses from bordered pills into one inline
  dot/spinner indicator; node summary rows round to xl with hover and
  fold the three flag badges into a single muted "数组 · 不上报自身 · 已设
  Token" line; empty states round to xl; account rail rounds to xl.

Presentational only — all state wiring and handlers unchanged.
This commit is contained in:
DrSmoothl committed 2026-06-13 23:25:11 +08:00
1 parent 3d480fb018
commit de598242ab
4 files changed
+50 -61

No files matched your search

@@ -35,7 +35,7 @@ export function AccountSidebar({
<motion.aside
animate={{ width: collapsed ? 56 : 248 }}
transition={{ type: 'spring', stiffness: 300, damping: 32 }}
className="shrink-0 rounded-lg border bg-card/40"
className="shrink-0 rounded-xl border bg-card/40"
>
<div className={cn('flex items-center', collapsed ? 'justify-center px-1.5 py-2' : 'justify-between px-3 py-2')}>
{!collapsed && <span className="text-xs font-medium text-muted-foreground">在线连接</span>}
@@ -54,7 +54,7 @@ export function NodeSummaryCard<T extends AdapterCommon>({
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.18 }}
className={cn(
'flex flex-col gap-2 rounded-lg border bg-card/40 p-3 transition-opacity sm:flex-row sm:items-center sm:gap-3',
'flex flex-col gap-2 rounded-xl border bg-card/40 p-3.5 transition-all hover:bg-accent/20 sm:flex-row sm:items-center sm:gap-3',
!enabled && 'opacity-60',
)}
>
@@ -79,22 +79,12 @@ export function NodeSummaryCard<T extends AdapterCommon>({
)}
</div>
<div className="mt-0.5 truncate font-mono text-xs text-muted-foreground tabular-nums">{summary}</div>
<div className="mt-1.5 flex flex-wrap items-center gap-1.5">
<Badge variant="outline" className="font-normal">
{item.messageFormat === 'string' ? 'CQ 码' : '数组'}
</Badge>
<Badge variant="outline" className="font-normal">
{item.reportSelfMessage ? '上报自身' : '不上报自身'}
</Badge>
{item.accessToken ? (
<Badge variant="outline" className="font-normal">
已设 Token
</Badge>
) : (
<Badge variant="outline" className="font-normal text-muted-foreground">
无 Token
</Badge>
)}
<div className="mt-1.5 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[11px] text-muted-foreground">
<span>{item.messageFormat === 'string' ? 'CQ 码' : '数组'}</span>
<span aria-hidden className="text-border">·</span>
<span>{item.reportSelfMessage ? '上报自身' : '不上报自身'}</span>
<span aria-hidden className="text-border">·</span>
<span className={cn(!item.accessToken && 'text-muted-foreground/60')}>{item.accessToken ? '已设 Token' : '无 Token'}</span>
</div>
</div>