mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-30 01:32:25 +01:00
When the window widens after an auto-collapse, the restore check removes .hidden and measures the chat width to decide whether the sidebar fits. html.ody-sidebar-mini also forces the sidebar to width 0 and was only cleared by syncRailSide() after the measurement, so the check always saw a 0-width sidebar and restored it even when the chat ended up narrower than MIN_CHAT_WIDTH. Sync the mode classes before measuring.