Skip to content

Commit da27d2c

Browse files
committed
[Site] Fixing "copy" button breaking onto next line on some smaller screens
1 parent a0221d9 commit da27d2c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ux.symfony.com/assets/styles/_terminal.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
.terminal-code a.filename-header {
2020
color: white;
2121
display: inline-block;
22+
flex-shrink: 1;
23+
overflow: hidden;
24+
text-overflow: ellipsis;
2225
}
2326

2427
.terminal-wrapper .terminal-controls {
@@ -62,6 +65,9 @@
6265
.terminal-code .btn-copy:hover {
6366
background-color: $n-600;
6467
}
68+
.terminal-code .code-buttons {
69+
white-space: nowrap;
70+
}
6571
/* copy button inside the code block itself */
6672
.terminal-code .terminal-body .code-buttons {
6773
position: absolute;

0 commit comments

Comments
 (0)