Skip to content

Commit f289e25

Browse files
authored
Merge pull request rails#54661 from etmartinkazoo/patch-1
Fix Horizontal Scroll on Mobile [ci skip]
2 parents 84f542c + 6d2f012 commit f289e25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

guides/assets/stylesrc/components/_code-container.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,13 @@ dl dd .interstitial {
4444
padding-left: 1em !important; // remove if icon is restored
4545
direction: ltr !important;
4646
text-align: left !important;
47+
width: 100%;
48+
white-space: normal;
4749

4850
pre {
4951
margin: 0;
50-
overflow: visible; // allows for the blue highlight to be seen
52+
overflow: scroll;
53+
white-space: pre;
5154
}
5255

5356
button.clipboard-button {

0 commit comments

Comments
 (0)