-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Spacing and Alignment #359
Comments
I don't know why the icon and title aren't vertically centered for you. I tested it on Fedora GNOME and it appears fine, even when using the touch density. Does it also happen if you create a fresh profile? By default, the icon and title are left aligned on all platforms (other than macOS), because there are quite a lot of different desktop environments and configuration options, and it's hard to detect which style should be used, so there is just a single default (Windows-like) style. However, you can add custom CSS yourself to customize how the icon bar should look. For example, for a more GNOME-like experience, you can add this CSS to your @-moz-document url('chrome://browser/content/browser.xhtml') {
/* Horizontally center the title element */
.site-info {
justify-content: center !important;
}
/* Remove the icon element */
.tab-icon-image {
display: none !important;
}
/* Remove space between hamburger menu and window controls */
.titlebar-spacer[type="post-tabs"] {
width: 0 !important;
}
} With those changes, this is how the titlebar should look: You also need to enable |
Hi, thanks for the tips.. So I
The result with the non vertically centered left icon and title remains. Readding some icon to the topbar makes icons and title correctly vertically centered! |
Interesting, I'll check if I can fix this. |
I applied, as suggested under This is what I get Effect
Aside: I wonder, whether you could not create a copy-to-terminal script to apply the theme to all PWAs like for the Firefox GNOME theme here |
Those two bugs (text not being centered vertically when there are no icons and inability to center horizontally with custom CSS) will be fixed in the next release. That script to copy CSS to all existing profiles is kinda out-of-scope for this project. However, you could instead use profile templates to add CSS once as a template and copy it to all new profiles. In the extension settings, you can enter a custom path in the "Default profile template" option. You need to set this to some directory that contains your template |
Thanks a lot! For posteriority |
Hi all,
as you can see here on Firefox-Youtube-PWA with
Hamburger Menu
--> More tools
-- > Customize toolbar
--> Density
set to
Touch
the following issues occur on the headerbar
YouTube
text to the left are not centeredHamurger Menu
is not aligned close to theClose Button
, which is disturbing in comparison to other apps on my systemThis is on
The text was updated successfully, but these errors were encountered: