Skip to content

Commit d20c6b4

Browse files
authored
Move coppy button for experiments in the plots ribbon to the right (#1831)
1 parent e8782d5 commit d20c6b4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export const RibbonBlock: React.FC<RibbonBlockProps> = ({
2929
>
3030
<div className={styles.label}>
3131
<div className={styles.title}>
32-
<CopyButton value={exp} className={styles.copyButton} />
3332
{exp}
33+
<CopyButton value={exp} className={styles.copyButton} />
3434
</div>
3535
{revision.group && (
3636
<div className={styles.subtitle}>{revision.revision}</div>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
.copyButton {
44
display: none;
5+
position: absolute;
6+
right: 0;
7+
top: 3px;
58
}
69

710
.block {
@@ -42,6 +45,8 @@
4245
.title {
4346
display: inline-flex;
4447
align-items: center;
48+
padding-right: 15px;
49+
position: relative;
4550
}
4651

4752
.subtitle {

0 commit comments

Comments
 (0)