style(layout): 数据源状态卡图标 Key → Database

侧栏「TickFlow Expert」数据源徽标左侧的钥匙图标改为数据库图标,
与「数据源」语义一致(点击跳转数据源设置)。Key 导入随之移除。

验证: tsc 通过; 浏览器实测渲染为 lucide-database。
This commit is contained in:
shy3130
2026-08-20 15:32:56 +08:00
parent 420a362bcd
commit b5229f3dc5
+1 -2
View File
@@ -28,7 +28,6 @@ import {
Pickaxe,
FileText,
Settings,
Key,
Database,
Loader2,
LayoutDashboard,
@@ -229,7 +228,7 @@ function TierBadge({ label, hasKey, providerName, isTickflow }: { label: string;
className="pointer-events-none absolute inset-y-1.5 left-0 w-[2px] rounded-full bg-accent/50 transition-colors group-hover:bg-accent"
style={base === 'expert' ? { background: 'linear-gradient(180deg, #60a5fa, #c084fc, #fbbf24)' } : undefined}
/>
<Key className="h-3.5 w-3.5 shrink-0 text-muted group-hover:text-accent transition-colors" />
<Database className="h-3.5 w-3.5 shrink-0 text-muted group-hover:text-accent transition-colors" />
<span className="min-w-0 truncate text-[11px] font-medium text-secondary group-hover:text-foreground transition-colors">
{providerName || '数据源'}
</span>