refactor: mcp list adaptation font icon (#453)

This commit is contained in:
ayangweb
2025-04-27 21:41:56 +08:00
committed by GitHub
parent 0a231b80d0
commit a6a84f3df5

View File

@@ -22,6 +22,7 @@ import VisibleKey from "@/components/Common/VisibleKey";
import { useChatStore } from "@/stores/chatStore";
import NoDataImage from "@/components/Common/NoDataImage";
import PopoverInput from "../Common/PopoverInput";
import FontIcon from "../Common/Icons/FontIcon";
interface SearchPopoverProps {
isMCPActive: boolean;
@@ -284,8 +285,10 @@ export default function SearchPopover({
<div className="flex items-center gap-2 overflow-hidden">
{isAll ? (
<Layers className="size-[16px] text-[#0287FF]" />
) : item.icon?.startsWith("font_") ? (
<FontIcon name={item.icon} className="size-4" />
) : (
<TypeIcon item={item} className="size-[16px]" />
<TypeIcon item={item} className="size-4" />
)}
<span className="truncate">