From e434ad65ec5c413c2d6326dda8bd48e7a8777c67 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Mon, 11 Nov 2024 13:29:22 +0000 Subject: [PATCH] MobileArticleTarget: Make close/publish buttons fixed width This aligns them with the mobile wikitext editor. At mobile widths the difference is negligible. On tablets this distinguishes "navigation" buttons from the surface toolbar buttons. Bug: T344370 Change-Id: I342e3bb579afb9f26e2af743e28eedb32efa3d46 --- .../ve-mw/init/styles/ve.init.mw.MobileArticleTarget.less | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/ve-mw/init/styles/ve.init.mw.MobileArticleTarget.less b/modules/ve-mw/init/styles/ve.init.mw.MobileArticleTarget.less index c159c0097d..1e1c4f2974 100644 --- a/modules/ve-mw/init/styles/ve.init.mw.MobileArticleTarget.less +++ b/modules/ve-mw/init/styles/ve.init.mw.MobileArticleTarget.less @@ -71,6 +71,14 @@ position: fixed; } +.ve-init-mw-mobileArticleTarget-toolbar.ve-ui-targetToolbar-mobile .oo-ui-toolbar-tools > { + .ve-ui-toolbar-group-back, + .ve-ui-toolbar-group-save { + flex: 0; + min-width: 2.75em; + } +} + @media screen and ( max-width: 767px ) { .ve-init-mw-target-surface > .ve-ui-surface-placeholder > * { /* Fix margin overlap */