Compare commits

...
Author SHA1 Message Date
Cursor Agentand陈大猫 0fb84c7ac2 fix(ui): fill the quick-connect bolt
Zap uses fill="currentColor" so it renders solid in the primary badge, colored by the existing text-primary-foreground token.

Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com>
2026-10-20 12:10:28 +00:00
Cursor Agentand陈大猫 4931bee258 fix(ui): badge the quick-connect icon like host avatars
Reuse the DistroAvatar sm fallback classes so the Zap sits in the same 20px primary rounded box as a generic saved-host row.

Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com>
2026-10-20 12:09:35 +00:00
Cursor Agentand陈大猫 1470353d9b fix(ui): use a lightning icon for quick connect
The host switcher quick-connect row now uses lucide Zap at the same size and stroke as the previous terminal icon.

Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com>
2026-10-20 11:52:05 +00:00
+3 -2
View File
@@ -8,6 +8,7 @@ import {
Search,
Terminal,
TerminalSquare,
Zap,
} from "lucide-react";
import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
import { useI18n } from "../application/i18n/I18nProvider";
@@ -609,8 +610,8 @@ const QuickSwitcherInner: React.FC<QuickSwitcherProps> = ({
className={rowClass}
onClick={() => handleItemSelect(item)}
>
<div className="flex h-6 w-6 shrink-0 items-center justify-center rounded text-muted-foreground">
<Terminal size={16} />
<div className="shrink-0 flex items-center justify-center bg-primary text-primary-foreground h-5 w-5 rounded-[5px]">
<Zap className="h-3 w-3" fill="currentColor" />
</div>
<span className="min-w-0 truncate text-sm font-medium">{item.title}</span>
</div>