From adc4346652c95d65b3c03694761aff9f1c429642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Tue, 11 Aug 2020 16:07:13 +0200 Subject: [PATCH] ve.ui.MWGalleryDialog: Allow "Add new image" button label to wrap The interface has enough space for 2 or 3 lines of text. (On mobile, the button has only an icon and no label.) Bug: T260074 Change-Id: I50b08029f843e91d10b8c81985f6dfacbb96c8e7 --- .../ve-mw/ui/styles/dialogs/ve.ui.MWGalleryDialog.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/ve-mw/ui/styles/dialogs/ve.ui.MWGalleryDialog.css b/modules/ve-mw/ui/styles/dialogs/ve.ui.MWGalleryDialog.css index 8c8cd438e6..0e2e01d0eb 100644 --- a/modules/ve-mw/ui/styles/dialogs/ve.ui.MWGalleryDialog.css +++ b/modules/ve-mw/ui/styles/dialogs/ve.ui.MWGalleryDialog.css @@ -92,6 +92,16 @@ border-top: 1px solid #eaecf0; } +.ve-ui-mwGalleryDialog-imageListMenuLayout-desktop > .oo-ui-menuLayout-menu .oo-ui-panelLayout-padded { + /* Center the button vertically */ + padding: 0 12px; + line-height: 5em; +} + +.ve-ui-mwGalleryDialog-imageListMenuLayout-desktop > .oo-ui-menuLayout-menu .oo-ui-panelLayout-padded .oo-ui-buttonElement-button { + white-space: normal; +} + .ve-ui-mwGalleryDialog-imageListMenuLayout-mobile > .oo-ui-menuLayout-menu { box-shadow: -1px 0 0 0 rgba( 0, 0, 0, 0.05 ); line-height: 102px;