Skip to content

Commit 1651ac5

Browse files
authored
Fix plot ribbon copy buttons (#4147)
1 parent 00a9759 commit 1651ac5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

webview/src/plots/components/ribbon/RibbonBlockTooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const RibbonBlockTooltip: React.FC<{
2929
<td className={cx(styles.tooltipColumn, styles[`${type}Key`])}>
3030
<span className={styles.tooltipPathWrapper}>{path}</span>
3131
</td>
32-
<td>
32+
<td className={styles.tooltipColumn}>
3333
{typeof value === 'number' ? formatNumber(value) : value}
3434
{value === '-' || (
3535
<CopyButton

webview/src/plots/components/ribbon/styles.module.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
display: none;
55
position: absolute;
66
right: 0;
7-
top: 3px;
7+
top: 0;
88
}
99

1010
.tooltipColumn {
@@ -38,9 +38,9 @@
3838

3939
.copyButton {
4040
opacity: 0;
41-
display: inline;
41+
display: inline-block;
4242
position: static;
43-
margin-top: 2px;
43+
vertical-align: top;
4444
font-size: 0.8125rem;
4545
}
4646

0 commit comments

Comments
 (0)