Skip to content

Commit e52692b

Browse files
lint and cell copy fix
1 parent 8decef2 commit e52692b

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

frontend/src/widgets/copyable-cell/copyable-cell.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
/* Copyable Cell - hover tooltip with copy for table cells */
22

3-
.copyable-cell {
4-
display: flex;
5-
align-items: center;
6-
width: 100%;
7-
min-height: 20px;
3+
.copyable-cell-text {
84
overflow: hidden;
95
text-overflow: ellipsis;
106
white-space: nowrap;

frontend/src/widgets/copyable-cell/index.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function CopyableCell({ children, value, className = "" }) {
6262
);
6363

6464
if (!textValue) {
65-
return <div className={`copyable-cell ${className}`}>{children}</div>;
65+
return <span className={className}>{children}</span>;
6666
}
6767

6868
const truncatedValue =
@@ -89,18 +89,19 @@ function CopyableCell({ children, value, className = "" }) {
8989
);
9090

9191
return (
92-
<Tooltip
93-
title={tooltipContent}
94-
placement="topLeft"
95-
color={token.colorBgElevated}
96-
overlayInnerStyle={overlayStyle}
97-
mouseEnterDelay={0.4}
98-
destroyTooltipOnHide
99-
>
100-
<div className={`copyable-cell ${className}`} onDoubleClick={doCopy}>
101-
{children}
102-
</div>
103-
</Tooltip>
92+
<span className={className}>
93+
<Tooltip
94+
title={tooltipContent}
95+
color={token.colorBgElevated}
96+
overlayInnerStyle={overlayStyle}
97+
mouseEnterDelay={0.4}
98+
destroyTooltipOnHide
99+
>
100+
<span className="copyable-cell-text" onDoubleClick={doCopy}>
101+
{children}
102+
</span>
103+
</Tooltip>
104+
</span>
104105
);
105106
}
106107

0 commit comments

Comments
 (0)