feat(webui): refine interactive controls

Separate the custom context menu preference and enable it by default.

Bring dropdowns and settings choices into a consistent, responsive interaction language.
This commit is contained in:
DrSmoothl committed 2026-07-31 17:38:51 +08:00
1 parent ea39200111
commit 5b68ca5bd3
16 files changed
+904 -283

No files matched your search

@@ -5,7 +5,7 @@
import { useEffect, useMemo, useState } from 'react';
import { motion } from 'motion/react';
import { Loader2, MessageSquarePlus, Send } from 'lucide-react';
import { Select } from '@/components/ui/select';
import { Dropdown } from '@/components/interior/dropdown';
import { Picker } from '@/components/ui/picker';
import { JsonTree } from '@/components/ui/json-tree';
import { Segmented } from '@/components/debug/segmented';
@@ -97,10 +97,17 @@ export function MessageComposer({ accounts }: { accounts: QQInfo[] }) {
<div className="flex h-8 items-center">
<span className="text-xs font-medium text-muted-foreground">账号</span>
</div>
<Select value={uin} onChange={(e) => setUin(e.target.value)} className="w-full sm:w-44">
{accounts.length === 0 && <option value="">(无在线账号)</option>}
{accounts.map((a) => <option key={a.uin} value={a.uin}>{a.nickname || a.uin}</option>)}
</Select>
<Dropdown
value={uin}
onChange={setUin}
label="账号"
placeholder={accounts.length === 0 ? '(无在线账号)' : '选择账号'}
items={accounts.map((account) => ({
value: account.uin,
label: account.nickname || account.uin,
}))}
className="w-full sm:w-44"
/>
</div>
<div className="flex flex-col gap-1.5">
<div className="flex h-8 items-center justify-between">