We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84f956a commit 06abe80Copy full SHA for 06abe80
src/browser/modules/Editor/styled.tsx
@@ -67,6 +67,13 @@ export const EditorContainer = styled.div`
67
min-width: 0;
68
width: 0; // needed to prevent the editor from growing the text field
69
70
+
71
+ /* The monaco editor calculates width of the line number based on the max width of the digits 0-9 and no other characters.
72
+ This causes the line number to sometime line-break, nowrap fixes this.
73
+ The calculation also makes the line sometime be too long which makes the indent of the line number too large. */
74
+ & .active-line-number {
75
+ white-space: nowrap;
76
+ }
77
`
78
79
export const FlexContainer = styled.div`
0 commit comments