mirror of
https://github.com/ONLYOFFICE/desktop-sdk.git
synced 2026-03-31 10:23:12 +08:00
AIAgent: fix color for checked model
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -1,6 +1,5 @@
|
|||||||
import { useRef, useState } from "react";
|
import { useRef, useState } from "react";
|
||||||
import { Item } from "@radix-ui/react-dropdown-menu";
|
import { Item } from "@radix-ui/react-dropdown-menu";
|
||||||
import { ReactSVG } from "react-svg";
|
|
||||||
|
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
@ -117,10 +116,12 @@ const DropDownItem = ({
|
|||||||
) : (
|
) : (
|
||||||
icon ?? null
|
icon ?? null
|
||||||
)}
|
)}
|
||||||
<span className={cn(
|
<span
|
||||||
"truncate font-normal text-[14px] leading-[20px] text-[var(--drop-down-menu-item-color)]",
|
className={cn(
|
||||||
withSpace ? "ms-[28px]" : ""
|
"truncate font-normal text-[14px] leading-[20px] text-[var(--drop-down-menu-item-color)]",
|
||||||
)}>
|
withSpace ? "ms-[28px]" : ""
|
||||||
|
)}
|
||||||
|
>
|
||||||
{text}
|
{text}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@ -145,7 +146,9 @@ const DropDownItem = ({
|
|||||||
dropdownRef={submenuRef}
|
dropdownRef={submenuRef}
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
{checked ? <ReactSVG src={CheckedIconUrl} /> : null}
|
{checked ? (
|
||||||
|
<IconButton iconName={CheckedIconUrl} size={16} disableHover isStroke />
|
||||||
|
) : null}
|
||||||
{withToggle && onToggleChange ? (
|
{withToggle && onToggleChange ? (
|
||||||
<div onClick={(e) => e.stopPropagation()}>
|
<div onClick={(e) => e.stopPropagation()}>
|
||||||
<ToggleButton
|
<ToggleButton
|
||||||
|
|||||||
Reference in New Issue
Block a user