fix: !set width
This commit is contained in:
@@ -76,12 +76,10 @@ export const LeftSidePanel = (
|
|||||||
const innerHeightWithoutNavbar = window.innerHeight - 70;
|
const innerHeightWithoutNavbar = window.innerHeight - 70;
|
||||||
if (innerHeightWithoutNavbar <= workflowListHeight) {
|
if (innerHeightWithoutNavbar <= workflowListHeight) {
|
||||||
if (!hasScrollbar) {
|
if (!hasScrollbar) {
|
||||||
setWidth(width - 10);
|
|
||||||
setHasScrollbar(true);
|
setHasScrollbar(true);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (hasScrollbar && !alreadyHasScrollbar) {
|
if (hasScrollbar && !alreadyHasScrollbar) {
|
||||||
setWidth(width + 10);
|
|
||||||
setHasScrollbar(false);
|
setHasScrollbar(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user