Skip to content

Commit

Permalink
Fix plot ribbon copy buttons (#4147)
Browse files Browse the repository at this point in the history
  • Loading branch information
julieg18 authored Jun 20, 2023
1 parent 00a9759 commit 1651ac5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion webview/src/plots/components/ribbon/RibbonBlockTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const RibbonBlockTooltip: React.FC<{
<td className={cx(styles.tooltipColumn, styles[`${type}Key`])}>
<span className={styles.tooltipPathWrapper}>{path}</span>
</td>
<td>
<td className={styles.tooltipColumn}>
{typeof value === 'number' ? formatNumber(value) : value}
{value === '-' || (
<CopyButton
Expand Down
6 changes: 3 additions & 3 deletions webview/src/plots/components/ribbon/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
display: none;
position: absolute;
right: 0;
top: 3px;
top: 0;
}

.tooltipColumn {
Expand Down Expand Up @@ -38,9 +38,9 @@

.copyButton {
opacity: 0;
display: inline;
display: inline-block;
position: static;
margin-top: 2px;
vertical-align: top;
font-size: 0.8125rem;
}

Expand Down

0 comments on commit 1651ac5

Please sign in to comment.