Skip to content

Commit

Permalink
fix px in sidebarWidth param
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuked88 committed Sep 11, 2024
1 parent addb54e commit c203414
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/js/sidebar_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit c203414

Please sign in to comment.