From 6804aca2719ba4ec513282d0627ae89e30ade313 Mon Sep 17 00:00:00 2001 From: Func Date: Sat, 7 Dec 2024 11:25:13 +0800 Subject: [PATCH] styles: Avoid misalignments when line numbering is disabled Ref: https://defensivecss.dev/tip/flexbox-min-content-size/ Bug: T381714 Change-Id: Ifedcf62fe7c7d1106433c36140f009c7195f1b72 --- resources/ve-cm/ve.ui.CodeMirror.v6.less | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/ve-cm/ve.ui.CodeMirror.v6.less b/resources/ve-cm/ve.ui.CodeMirror.v6.less index 676b5083..40327006 100644 --- a/resources/ve-cm/ve.ui.CodeMirror.v6.less +++ b/resources/ve-cm/ve.ui.CodeMirror.v6.less @@ -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 {