Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Move the menubar from left side to right side #427

Open
waffles38 opened this issue Oct 15, 2024 · 7 comments
Open

[Request] Move the menubar from left side to right side #427

waffles38 opened this issue Oct 15, 2024 · 7 comments

Comments

@waffles38
Copy link

Hello MrOtherGuy, love your work!

Was wondering if you could make a mod to move the menubar to right side like in the image? I really dislike having it on the left side so it would be great if you can create this. Thank you

firefox
@MrOtherGuy
Copy link
Owner

What styles are you using? Anyway, up to Firefox 132 you can get that kind of layout with simply this provided that you enable menubar (kinda looks like you are already doing that):

#titlebar{
  flex-direction: row-reverse !important;
}
#main-window #menubar-items > #main-menubar{
  flex-grow: 1;
}

It would only differ from your image by the fact that alltabs-button won't be between window-controls and menubar.

@MrOtherGuy
Copy link
Owner

With Firefox 133 this becomes a bit more complicated but this should work:

#navigator-toolbox{
  display: grid;
  grid-auto-columns: 1fr auto;
}
.browser-toolbar,
.global-notificationbox,
#tab-notification-deck{
  grid-column: 1/3;
}
#TabsToolbar{
  grid-row: 1/2;
  grid-column: 1/2;
}
#toolbar-menubar{
  grid-column: 2/3;
}
#toolbar-menubar > spacer{
  display: none;
}
#main-window #menubar-items > #main-menubar{
  flex-grow: 1;
}

Also with 133 you can move the alltabs button wherever you like in customize mode just like any other button.

@waffles38
Copy link
Author

Thank you so much man! It works great and i am currently using v131.
I was wondering, is it possible to also add an empty space bar to the far right "before" the menubar? See my example image

ff

@MrOtherGuy
Copy link
Owner

That doesn't look like it's supposed to look. Window controls are supposed to be in the right corner like they normally are. That probably means that you have some other styles that mess things up - and possibly also that you don't have menubar enabled.

If you then would want a space between menubar items and window-controls then you could simply add something like:

#toolbar-menubar > spacer{ width: 40px }

@MrOtherGuy
Copy link
Owner

Yeah, okay - remove that menubar_in_tabs_toolbar.css - it assumes that you want to display menubar on the left side of tabs which is apparently opposite of what you want. So remove that and just use the snippet above.

For Firefox 133 I could make that style have an a pref in about:config to create an easily switchable option to select which way tabs vs. menubar should be shown.

@waffles38
Copy link
Author

Yep, that fixed it! Thanks again for the help:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants