Skip to content

Commit 66f04a1

Browse files
committed
Adjust styling for copy node button
1 parent 6541980 commit 66f04a1

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

app/assets/stylesheets/inspect/node.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@
1212
}
1313

1414
.page-header h1 {
15-
align-items: center;
16-
display: flex;
17-
gap: 0.5rem;
15+
display: block;
16+
word-break: break-word;
17+
}
18+
19+
.page-header h1 span[data-clipboard-target="source"] {
20+
display: inline;
21+
margin-right: 0.25rem;
1822
}
1923

2024
.page-header button.copy {
@@ -26,9 +30,10 @@
2630
display: inline-flex;
2731
font-weight: 500;
2832
gap: 0.25rem;
29-
margin: -0.25rem 0 -0.25rem 0.25rem;
30-
padding: 0.25rem 0.5rem;
33+
margin: -0.25rem 0 -0.25rem 0;
34+
padding: 0rem 0rem;
3135
transition: background 0.15s ease-in-out, color 0.15s ease-in-out;
36+
vertical-align: middle;
3237
}
3338

3439
.page-header button.copy:hover {
@@ -47,6 +52,7 @@
4752
display: inline-flex;
4853
font-weight: 500;
4954
gap: 0.25rem;
55+
vertical-align: middle;
5056
}
5157

5258
.node-edges > tbody > tr > td {

app/views/inspect/nodes/show.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
%h1{ data: { controller: 'clipboard' } }
1515
%span{ data: { clipboard_target: 'source' } }= node_key
1616
%button.copy{ data: { action: 'clipboard#copy', clipboard_target: 'button' }, aria: { label: 'Copy node key' } }
17-
= inline_svg 'hero/20/duplicate.svg', class: 'w-5 h-5'
17+
= inline_svg 'hero/20/duplicate.svg', style: 'width: 2rem; height: 2rem;'
1818
.copied.hidden{ data: { clipboard_target: 'notice' } }
1919
= inline_svg 'hero/20/circle-check.svg', class: 'w-4 h-4'
2020
.controls

0 commit comments

Comments
 (0)