Adjusting the Firefox Title Bar Height

In recent years, I've primarily used Chrome, occasionally using Firefox. A few days ago, after switching to a LabWC environment, I discovered that Chrome couldn't remember my passwords (keepassxc worked fine for me). Furthermore, Wayland isn't natively supported, and the fcitx5 input method in Chrome also skews. I had no choice but to switch to Firefox. Observant users will notice that the Firefox title bar is much taller than Chrome's, as is the address bar. If you're using a small-screen device like a laptop, this is simply unbearable.

I did some searching, and there are solutions. The simplest and most acceptable solution comes from the official documentation.

Simply enable compact mode. Other solutions are too customized (directly changing the height isn't user-friendly).

  • 1. Enter the URL in about:config and press Enter.

Click Accept the Risk and Continue to access the about:config page, as shown below.

firefox about config

  • 2. Search for the browser.compactmode.show and set it to true.

This turns on compact mode, as shown below:

firefox compactmode

After selecting it, close the about:config page. The settings will be saved automatically.

  • 3. Select compact mode.

The previous step only enabled this option; you still need to select it for it to take effect. It's like if there's scrambled eggs with tomatoes on the menu, you have to order it before the waiter knows.

firefox settings
customize toolbar

Click the Density button in the lower-left corner of the page and select the settings as shown below:

firefox density

That's it! With compact mode enabled, the title bar and address bar will be shorter, and pop-up menus like Favorites will also change accordingly. Simply put, it's more compact. ^_^

Finally, I have to admit that even after these adjustments, I still don't think Chrome's default settings are as good. After all, Chrome is backed by Google, and they likely have more designers and more resources at their disposal than Firefox. However, on Linux, Firefox natively supports Wayland and the fcitx5 input method and works fine, but Chrome doesn't.

So each has its pros and cons, and I would choose firefox at this moment.

Lastmod: Saturday, August 9, 2025

See Also:

Translations: