style(webui): refine shared surface depth

Add theme-neutral media keylines and layered card shadows so avatars, previews, pickers, and shared cards remain separated without relying on hard borders.

Keep the message composer radius hierarchy concentric across appearance settings and remove redundant nested canvas surfaces from forwarded-message editors. This changes visual presentation only; message composition behavior and emitted payloads remain unchanged.
This commit is contained in:
DrSmoothl committed 2026-07-16 22:34:47 +08:00
1 parent 9bdc6510bd
commit 9f212d2f19
6 files changed
+60 -13

No files matched your search

+3 -3
View File
@@ -138,7 +138,7 @@ export function Picker({
!selected && !value && 'text-muted-foreground',
)}
>
{selected?.avatar && <img src={selected.avatar} alt="" className="h-5 w-5 shrink-0 rounded-full" />}
{selected?.avatar && <img src={selected.avatar} alt="" className="media-outline h-5 w-5 shrink-0 rounded-full" />}
<span className="min-w-0 flex-1 truncate text-left">
{selected ? selected.label : value || placeholder}
{selected?.sub && <span className="ml-1.5 text-xs text-muted-foreground tabular-nums">{selected.sub}</span>}
@@ -217,8 +217,8 @@ export function Picker({
{opt ? (
<>
{opt.avatar
? <img src={opt.avatar} alt="" className="h-7 w-7 shrink-0 rounded-full" />
: <span className="h-7 w-7 shrink-0 rounded-full bg-muted" />}
? <img src={opt.avatar} alt="" className="media-outline h-7 w-7 shrink-0 rounded-full" />
: <span className="media-outline h-7 w-7 shrink-0 rounded-full bg-muted" />}
<span className="min-w-0 flex-1 truncate text-sm">{opt.label}</span>
{opt.sub && <span className="shrink-0 font-mono text-meta text-muted-foreground tabular-nums">{opt.sub}</span>}
</>