mirror of
https://github.com/zen-browser/desktop.git
synced 2026-06-14 07:23:42 +00:00
`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