Files
desktop/src/zen/common/modules
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
..