From 03becdd2e981654b165607bd219b7dc35485c740 Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Sun, 20 Sep 2020 13:55:06 +0200 Subject: [PATCH] ViewEdit: avoid linebreaks in form labels This will prevent the labels from being squeezed under certain conditions (e.g. if the interface is in Chinese). The labels are now taking up more space for all languages, but that's not a problem because we have plenty of space on the right. Bug: T231962 Change-Id: I8569cc63c4116c3a8978258d5656c72fcf2552b0 --- modules/ext.abuseFilter.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ext.abuseFilter.css b/modules/ext.abuseFilter.css index 1282fed27..84ca7dd8c 100644 --- a/modules/ext.abuseFilter.css +++ b/modules/ext.abuseFilter.css @@ -117,6 +117,11 @@ li.mw-abusefilter-changeslist-nomatch { width: 100%; /* So that we can use relative width for mw-abusefilter-editor */ } +#mw-abusefilter-editing-form .mw-label { + /* See T231962, the 100% width set above may squeeze the labels */ + white-space: nowrap; +} + div.mw-abusefilter-editor { width: 65%; /* Same as wpFilterRules and mw-abusefilter-notes-editor */ height: 30em; /* Similar to wpFilterRules */