diff --git a/app/js/sidebar_node.js b/app/js/sidebar_node.js index cc7e724..d198fac 100644 --- a/app/js/sidebar_node.js +++ b/app/js/sidebar_node.js @@ -140,6 +140,12 @@ function saveSidebarPosition(sideb) { function restoreSidebarWidth() { + //if getVar("sidebarWidth") contains px remove it + if (getVar("sidebarWidth") && getVar("sidebarWidth").includes('px')) { + setVar("sidebarWidth", getVar("sidebarWidth").replace('px', '')); + } + + if (getVar("sidebarWidth") == null) { setVar("sidebarWidth", 400); diff --git a/pyproject.toml b/pyproject.toml index 55483d9..c39e94a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-n-sidebar" description = "A simple sidebar for ComfyUI." -version = "1.5.6" +version = "1.5.7" license = { file = "LICENSE" } [project.urls]