fix: !set width

This commit is contained in:
amhsirak
2025-05-20 20:34:33 +05:30
parent 52e95b730f
commit 01b142007b

View File

@@ -76,12 +76,10 @@ export const LeftSidePanel = (
const innerHeightWithoutNavbar = window.innerHeight - 70;
if (innerHeightWithoutNavbar <= workflowListHeight) {
if (!hasScrollbar) {
setWidth(width - 10);
setHasScrollbar(true);
}
} else {
if (hasScrollbar && !alreadyHasScrollbar) {
setWidth(width + 10);
setHasScrollbar(false);
}
}