diff options
author | Pedro Pinto Silva <pedro.silva@collabora.com> | 2022-04-04 16:41:20 +0200 |
---|---|---|
committer | pedropintosilva <65948705+pedropintosilva@users.noreply.github.com> | 2022-04-05 14:29:54 +0200 |
commit | f7c3ae45d55b9f55111a64c0fb7be50bf792e6e1 (patch) | |
tree | be5d8a052bed62a9dee9b49f3ff592b5ea47ec28 | |
parent | Fix mobile hamburger menu color (diff) | |
download | online-f7c3ae45d55b9f55111a64c0fb7be50bf792e6e1.tar.gz online-f7c3ae45d55b9f55111a64c0fb7be50bf792e6e1.zip |
Mobile: Fix save icon and back icon overlay
Save icon (blue tick) should not be visible at all when the hamburger
menu is open
On Calc and it is also needed to hide formularbar while hamburger menu
is open because otherwise the it affects the size of the toolbar-wrapper
and consequently affect the flex box and how the hamburger menu gets
aligned
before: https://archive.org/download/cool-bug-mobile-save-above-back/cool-bug-mobile-save-above-back.png
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ifa5406a5a5c31172cde82e843949671fa95c6596
-rw-r--r-- | browser/src/control/Control.Menubar.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/browser/src/control/Control.Menubar.js b/browser/src/control/Control.Menubar.js index 0eb4698b02..74c8d4501e 100644 --- a/browser/src/control/Control.Menubar.js +++ b/browser/src/control/Control.Menubar.js @@ -1372,6 +1372,8 @@ L.Control.Menubar = L.Control.extend({ self._map.fire('mobilewizard', {data: menuData}); $('#toolbar-hamburger').removeClass('menuwizard-closed').addClass('menuwizard-opened'); $('#mobile-wizard-header').hide(); + $('#toolbar-mobile-back').hide(); + $('#formulabar').hide(); } } else if (!window.mode.isMobile()) { // Ditto. @@ -1382,6 +1384,8 @@ L.Control.Menubar = L.Control.extend({ window.mobileMenuWizard = false; self._map.fire('closemobilewizard'); $('#toolbar-hamburger').removeClass('menuwizard-opened').addClass('menuwizard-closed'); + $('#toolbar-mobile-back').show(); + $('#formulabar').show(); } }); // hide mobile menu beforeunload |