diff --git a/packages/webui/src/components/config/account-sidebar.tsx b/packages/webui/src/components/config/account-sidebar.tsx index 6d0bfb47..9b9c0a10 100644 --- a/packages/webui/src/components/config/account-sidebar.tsx +++ b/packages/webui/src/components/config/account-sidebar.tsx @@ -35,7 +35,7 @@ export function AccountSidebar({
{!collapsed && 在线连接} diff --git a/packages/webui/src/components/config/node-summary-card.tsx b/packages/webui/src/components/config/node-summary-card.tsx index 86d28243..395fa8a5 100644 --- a/packages/webui/src/components/config/node-summary-card.tsx +++ b/packages/webui/src/components/config/node-summary-card.tsx @@ -54,7 +54,7 @@ export function NodeSummaryCard({ 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({ )}
{summary}
-
- - {item.messageFormat === 'string' ? 'CQ 码' : '数组'} - - - {item.reportSelfMessage ? '上报自身' : '不上报自身'} - - {item.accessToken ? ( - - 已设 Token - - ) : ( - - 无 Token - - )} +
+ {item.messageFormat === 'string' ? 'CQ 码' : '数组'} + · + {item.reportSelfMessage ? '上报自身' : '不上报自身'} + · + {item.accessToken ? '已设 Token' : '无 Token'}
diff --git a/packages/webui/src/components/pages/config-page.tsx b/packages/webui/src/components/pages/config-page.tsx index f02739e4..113b880a 100644 --- a/packages/webui/src/components/pages/config-page.tsx +++ b/packages/webui/src/components/pages/config-page.tsx @@ -8,7 +8,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { motion } from 'motion/react'; -import { MousePointerClick, Plus, Save } from 'lucide-react'; +import { Check, Loader2, MousePointerClick, Plus, Save } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Skeleton } from '@/components/ui/skeleton'; import { Badge } from '@/components/ui/badge'; @@ -276,24 +276,18 @@ function HeaderBar({ selectedUin, dirty, saveStatus, onSave, activeTab, onCreate UIN {selectedUin} -
- {saveStatus && ( - + {(saveStatus || dirty) && ( + + {saveStatus === '保存中...' ? ( + <>保存中 + ) : saveStatus === '保存成功' ? ( + <>已保存 + ) : saveStatus ? ( + <>{saveStatus} + ) : ( + <>未保存 )} - > - {saveStatus} - - )} - {dirty && !saveStatus && ( - - 未保存 )} {onCreate && ( @@ -410,7 +404,7 @@ function NetworkTabView({ if (list.length === 0) { return ( -
+

暂无 {tab.title} 节点

- ))} +
+ {SORT_OPTIONS.map((o) => { + const active = sortKey === o.id; + return ( + + ); + })}
)}