fix: improve desktop resize responsiveness

This commit is contained in:
Bohdan Triapitsyn
2026-06-05 13:36:39 +03:00
parent 4e1560a10e
commit f1675d27da
4 changed files with 169 additions and 103 deletions
+5 -2
View File
@@ -1854,10 +1854,13 @@ export const useUIStore = create<UIStore>()(
const updates: Partial<UIStore> = {};
if (state.isBottomTerminalOpen && !state.hasManuallyResizedBottomTerminal) {
updates.bottomTerminalHeight = Math.floor(window.innerHeight * 0.32);
const nextHeight = Math.floor(window.innerHeight * 0.32);
if (state.bottomTerminalHeight !== nextHeight) {
updates.bottomTerminalHeight = nextHeight;
}
}
return updates;
return Object.keys(updates).length > 0 ? updates : state;
});
},