styles: Avoid misalignments when line numbering is disabled

Ref: https://defensivecss.dev/tip/flexbox-min-content-size/

Bug: T381714
Change-Id: Ifedcf62fe7c7d1106433c36140f009c7195f1b72
This commit is contained in:
Func 2024-12-07 11:25:13 +08:00
parent c3689196ad
commit 6804aca271

View file

@ -67,6 +67,9 @@
.cm-content {
padding: 0;
// T381714: Disable the automatic minimum size, so it can shrink
// See https://www.w3.org/TR/css-flexbox-1/#min-size-auto
min-width: 0;
}
.CodeMirror-selected {