This commit is contained in:
Riz 2023-12-08 04:24:40 +07:00
parent 269de30f24
commit 4756ba0979
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,3 @@
export const propCode = () => {
return <div className="flex">Code</div>;
};

View File

@ -0,0 +1,18 @@
import { FC } from "react";
import { Tooltip } from "../../../../../utils/ui/tooltip";
export const EdPropLabel: FC<{ name: string }> = ({ name }) => {
const label = (
<div className="pl-1 w-[70px] overflow-hidden text-ellipsis whitespace-nowrap">
{name}
</div>
);
return name.length > 8 ? (
<Tooltip content={name} placement="left" delay={100}>
{label}
</Tooltip>
) : (
label
);
};