This commit is contained in:
Rizky 2024-08-10 14:30:10 +07:00
parent 0e29cb9263
commit 843561267b
1 changed files with 10 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import { EdPropLabel } from "./prop-label";
import { ChevronDown } from "../../tree/node/item/indent";
import { Popover } from "../../../../../utils/ui/popover";
import { propInstanceOnChange } from "./on-change";
import { Tooltip } from "../../../../../utils/ui/tooltip";
type MetaOption = {
label: string;
@ -529,7 +530,15 @@ const SingleCheckbox = ({
}}
>
{!is_check ? unchecked : checked}
<div className="flex-1">{item.label}</div>
<div className="flex-1">
{item.label.length > 15 ? (
<Tooltip content={item.label}>
{item.label.substring(0, 15) + "..."}
</Tooltip>
) : (
item.label
)}
</div>
<div
className={cx(css`
padding-left: 10px;