Collapsible Left Panel - Clicking on separator should expand to 100% when no width is available in settings (#33053)

* Expand panel to full width

* Write tests
This commit is contained in:
R Midhun Suresh
2026-04-07 12:05:36 +00:00
committed by GitHub
parent f12b23a87a
commit 6b00466a85
2 changed files with 26 additions and 11 deletions
@@ -76,7 +76,7 @@ export class ResizerViewModel
public onSeparatorClick = (): void => {
if (this.panelHandle?.isCollapsed()) {
const lastSize = SettingsStore.getValue("RoomList.panelSize");
this.panelHandle.resize(`${lastSize}%`);
this.panelHandle.resize(`${lastSize ?? 100}%`);
}
};