Skip to content

Commit 2379c89

Browse files
committed
[Site] Fix Terminal component styles, ensure it does not grow, and display scrollbars
1 parent 5a6a89a commit 2379c89

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

ux.symfony.com/assets/styles/components/_Terminal.scss

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
border-radius: .75rem;
77
position: relative;
88
font-size: 12px;
9+
display: grid; // Ensure the Terminal overflow its parent if "pre" contains a very-long-line of the same highlighted element (e.g.: a long string)
910
}
1011

1112
.Terminal_light {
@@ -162,6 +163,7 @@
162163
overflow: visible;
163164
}
164165
scrollbar-width: thin;
166+
scrollbar-color: rgba(255, 255, 255, .8) transparent;
165167
pre {
166168
background: none;
167169
}
@@ -170,15 +172,15 @@
170172
}
171173
}
172174

173-
@media screen and (min-width: 768px) {
174-
.Terminal_content::-webkit-scrollbar {
175-
display: none;
176-
}
177-
.Terminal_content {
178-
--webkit-scrollbar-width: none;
179-
scrollbar-width: none;
180-
}
181-
}
175+
// @media screen and (min-width: 768px) {
176+
// .Terminal_content::-webkit-scrollbar {
177+
// display: none;
178+
// }
179+
// .Terminal_content {
180+
// --webkit-scrollbar-width: none;
181+
// scrollbar-width: none;
182+
// }
183+
// }
182184

183185
.Terminal_expand {
184186
position: absolute;

0 commit comments

Comments
 (0)