mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-16 11:37:47 +01:00
refactor: mcp list adaptation font icon (#453)
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user