jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/332076 )

Change subject: ActionFieldLayout: Limit the 'max-width: 50em' to align: top
......................................................................


ActionFieldLayout: Limit the 'max-width: 50em' to align: top

This was introduced so that multiple textfields in forms using both
FieldLayout and ActionFieldLayout have consistent width. It doesn't
really make sense in alignments other than 'top': textfields are not
usually using with 'inline' and their width is already limited more in
'left'/'right'.

Change-Id: I71521a5562e52d582ea9838830c85318ac32f546
---
M src/themes/apex/layouts.less
M src/themes/mediawiki/layouts.less
2 files changed, 6 insertions(+), 2 deletions(-)

Approvals:
  jenkins-bot: Verified
  Jforrester: Looks good to me, approved



diff --git a/src/themes/apex/layouts.less b/src/themes/apex/layouts.less
index b0f8989..adaf8c3 100644
--- a/src/themes/apex/layouts.less
+++ b/src/themes/apex/layouts.less
@@ -98,7 +98,9 @@
 }
 
 .theme-oo-ui-actionFieldLayout () {
-       max-width: 50em;
+       &.oo-ui-fieldLayout-align-top {
+               max-width: 50em;
+       }
 }
 
 .theme-oo-ui-fieldsetLayout () {
diff --git a/src/themes/mediawiki/layouts.less 
b/src/themes/mediawiki/layouts.less
index 1406d5b..8e6b0e8 100644
--- a/src/themes/mediawiki/layouts.less
+++ b/src/themes/mediawiki/layouts.less
@@ -109,7 +109,9 @@
 }
 
 .theme-oo-ui-actionFieldLayout () {
-       max-width: @max-width-default;
+       &.oo-ui-fieldLayout-align-top {
+               max-width: @max-width-default;
+       }
 }
 
 .theme-oo-ui-fieldsetLayout () {

-- 
To view, visit https://gerrit.wikimedia.org/r/332076
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I71521a5562e52d582ea9838830c85318ac32f546
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <matma....@gmail.com>
Gerrit-Reviewer: Bartosz Dziewoński <matma....@gmail.com>
Gerrit-Reviewer: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com>
Gerrit-Reviewer: Jforrester <jforres...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to