Go to file
Ashvin Jangid 09ed192fc4 gh-13642: fix unexpected sidebar width increase in compact mode (gh-13794)
`getAndApplySidebarWidth()` does handle this case but in the condition
it requires the event.
```
      if (
        event &&
        shouldRecalculate &&
        sidebarExpanded &&
        !gZenVerticalTabsManager._hadSidebarCollapse
      ) {
        return;
      }
```
If the function does not return here then it makes the
`--zen-sidebar-width` = `--actual-zen-sidebar-width` which adds the
padding's width to the sidebar.

I don't know if not passing event in the function was intentional, but
this seems to fix the issue.

fixes: #13642
2026-05-23 12:26:13 +02:00

Zen Browser

Downloads Crowdin Zen Release builds

Zen is a firefox-based browser with the aim of pushing your productivity to a new level!

Firefox Versions

  • Release - Is currently built using Firefox version 151.0.1! 🚀
  • Twilight - Is currently built using Firefox version RC 151.0.1!

Contributing

If you'd like to report a bug, please do so on our GitHub Issues page and for feature requests, you can use GitHub Discussions.

Zen is an open-source project, and we welcome contributions from the community! Please take a look at the contribution guidelines before getting started!

Partners

Thanks to all the partners of Zen for their support and contributions:

Description
Languages
TypeScript 31.2%
JavaScript 23.7%
Fluent 17.7%
C++ 17.7%
HTML 5.1%
Other 4.4%