chore: model instance show gpu info

This commit is contained in:
jialin
2024-09-12 18:34:44 +08:00
parent b6d5b45650
commit f339133245
18 changed files with 376 additions and 39 deletions
+3 -1
View File
@@ -14,12 +14,14 @@ interface AutoTooltipProps extends React.ComponentProps<typeof Tag> {
color?: string;
style?: React.CSSProperties;
ghost?: boolean;
showTitle?: boolean;
}
const AutoTooltip: React.FC<AutoTooltipProps> = ({
children,
maxWidth = '100%',
ghost = false,
showTitle = false,
...tagProps
}) => {
const contentRef = useRef<HTMLDivElement>(null);
@@ -62,7 +64,7 @@ const AutoTooltip: React.FC<AutoTooltipProps> = ({
);
return (
<Tooltip title={isOverflowing ? children : ''}>
<Tooltip title={isOverflowing || showTitle ? children : ''}>
{ghost ? (
<div ref={contentRef} style={tagStyle}>
{children}