Closed (fixed)
Project:
Admin Toolbar
Version:
8.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Aug 2018 at 08:54 UTC
Updated:
22 Sep 2020 at 15:17 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
romainj commentedSorry but I don't get it. Could you provide step-by-step instructions with screenshots?
Comment #3
seemas commentedhi inge_dt, did you find any solutions for this? I cannot find anything related and this seams to be annoying for more people.
Comment #4
ajay547 commentedHi seemas,
Possible solution of this scenario can be, we can hide the menu once the site is loaded in mobile device, and if hamburger menu is clicked then we can show that again.
Also this is not related to admin_toolbar module only (as per image attached in thread), instead it is default behaviour of vanilla drupal logged in as admin user.
Comment #5
seemas commentedOk, still... Looking for other suggestions/solutions/patches. This is more complex than I expected. So need help from others.
Comment #6
neslee canil pintoHided active menu from mobile view
Comment #7
neslee canil pintoAdd this css in css/admin.toolbar.css
@media (max-width:767px) {
#toolbar-item-administration-tray {
display:none;
}
#toolbar-item-shortcuts-tray {
display:none;
}
#toolbar-item-user-tray {
display:none;
}
}
Comment #8
chris matthews commentedComment #9
chris matthews commentedBug report -> Feature request
Comment #10
chris matthews commentedComment #11
neslee canil pinto@adriancid, need a review on #6. Thanks.
Comment #12
adriancidOnce I apply the patch I can't use anymore the menu and the code need to follow the coding standard.
Comment #13
rokzabukovec commentedI made a patch that always hides the dropdown menu. It doesn't rely on the width of the window but on the presence of the toolbar-tray-vertical class. I noticed a lot of CSS glitches when the toolbar is viewed on mobile but this I suppose is a different issue. Please review the patch.
Comment #15
adriancidThanks
Comment #17
ey commentedThis patch broke the menu that it hides the navigation on every page load also on desktops. This breaks the layout completely, since we use the navigation on the left side most of the time. Please revert this commit or make it configurable, or better make it only for mobile versions as this issue initially opened for.
Comment #18
adriancid@Elin Yordanov I don't see any problem in Drupal 8 or Drupal9, can you open a new issue and add the steps to reproduce it?