fix
This commit is contained in:
parent
0e29cb9263
commit
843561267b
|
|
@ -9,6 +9,7 @@ import { EdPropLabel } from "./prop-label";
|
||||||
import { ChevronDown } from "../../tree/node/item/indent";
|
import { ChevronDown } from "../../tree/node/item/indent";
|
||||||
import { Popover } from "../../../../../utils/ui/popover";
|
import { Popover } from "../../../../../utils/ui/popover";
|
||||||
import { propInstanceOnChange } from "./on-change";
|
import { propInstanceOnChange } from "./on-change";
|
||||||
|
import { Tooltip } from "../../../../../utils/ui/tooltip";
|
||||||
|
|
||||||
type MetaOption = {
|
type MetaOption = {
|
||||||
label: string;
|
label: string;
|
||||||
|
|
@ -529,7 +530,15 @@ const SingleCheckbox = ({
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{!is_check ? unchecked : checked}
|
{!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
|
<div
|
||||||
className={cx(css`
|
className={cx(css`
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue