- 🇩🇪Germany sascha_meissner Planet earth
I´m not sure why this works for me and not for you.
Within the patch i use utf-8 symbols ▲ and ▼ - 🇩🇪Germany Anybody Porta Westfalica
Really good and helpful idea! Especially when theming projects and you need to be logged in, but the admin toolbar should be toggled away. In mobile devices it's quite space-consuming.
So yes, would be nice to proceed here.
As a first step, the patch might be turned into a MR for easier review and merge? - 🇩🇪Germany sascha_meissner Planet earth
Thanks Anybody,
so what really needs to be done IMHO is to make it work properly with oliviero and probably also with gin admin theme. Besides that making it a MR seems to be a good step. I hope i can take a dive into this again soon, because on the sites i´m using this it´s actually very handy and on other sites where i dont/cant use this i find myself often in the browsers element inspector and remove the toolbar to see whats under it ... :) - Status changed to Needs work
over 1 year ago 6:44am 19 July 2023 - 🇩🇪Germany Anybody Porta Westfalica
Thanks, might also go into https://www.drupal.org/project/gin_toolbar → - what do you think makes more sense? Or should you ask the admin_toolbar maintainers first, if they are interested in this feature?
- 🇨ðŸ‡Switzerland handkerchief
+1 for this feature! I've wanted that for a long time for the same reason as the author of this issue.
- 🇩🇪Germany sascha_meissner Planet earth
Thank you for the feedback :-)
This was my first try to contribute something when i started learning Drupal, it turned out to be more complicated than i thought due to the fact that admin-themes are variable and come with their own markup. Now two years later i´m thinking that it would still be a nice feature, gin-theme tried to adress it a little bit by putting stuff into the sidebar but still there is no way to also remove the top-bar. So what i am thinking of right now is that the toggling could be made with a keyboard-combination sth. like "shift + h" with no button at all, so there the whole problem-layer with positioning and styling the button would disappear. I´ll try to code something up when i have an oppurtunity/time :) - 🇨ðŸ‡Switzerland handkerchief
Great! Until now, we have always had to solve this by creating a new role especially for this scenario, which is an unnecessary effort.
- Merge request !70Issue #3304810: Toggle away admin toolbar completely → (Open) created by sascha_meissner
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.4 & MySQL 8last update
11 months ago Waiting for branch to pass - Status changed to Needs review
11 months ago 1:48pm 22 January 2024 - 🇩🇪Germany sascha_meissner Planet earth
Hey i just implemented what I was describing in my last comment.
You can now use the key-combination "Shift + H" to toggle the toolbar, IMHO this is working veeeery good, i like it very much, also my team does :P
Due to the fact that there is no css required anymore it just works, no matter if you use Claro or Oliviero or other theme. I also removed the differenciation between admin and non admin routes, because i didnt see the point anymore.
Also i created an issue fork and a mergerequest.
Please test and review my changes :) - 🇨ðŸ‡Switzerland handkerchief
Thank you very much for your work. But I am a bit confused. The toolbar on the left disappears, but:
- The padding on the left remains
- The toolbar at the top of the screen remainsJust the icons of the toolbar on the left are gone. I currently have zero benefit. The goal would be to be able to hide the admin areas in the frontend as if you were viewing the website anonymously. But the admin bars still disrupt the whole layout.
- Status changed to Needs work
11 months ago 8:48am 31 January 2024 - 🇩🇪Germany sascha_meissner Planet earth
@handkerchief, now I see what you mean... it works good for the "regular" admin-toolbar in bartik or oliviero, but it has issues on gin-theme i didnt test. Let me see if i can figure something out for gin
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.4 & MySQL 8last update
10 months ago Waiting for branch to pass - Status changed to Needs review
10 months ago 10:25am 7 February 2024 - 🇩🇪Germany sascha_meissner Planet earth
@handkerchief Works fine now with gin as admin-theme as well :-)
Built in a little check if it´s gin and if so also hiding the "gin-secondary-toolbar--frontend" and correctly overwriting the paddings, this didnt work before because gin uses !important rules here, please review and test. - 🇨ðŸ‡Switzerland handkerchief
@sascha_meissner thank you very much, it's working now.
When hidden and when reloading, the page jumps because the toolbar is displayed first. This is due to the nature of the thing when the script is executed, so probably not much can be changed. In any case, a big step forward, thanks again. - Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.4 & MySQL 8last update
6 months ago Waiting for branch to pass