From edd58cd1538766e3189780de56cd508dc902ed4d Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Thu, 16 Jan 2025 11:36:11 -0500 Subject: [PATCH] Hotfix scoped --sidebar-width uasges in maskeditor.ts (#2269) Co-authored-by: Benjamin Lu --- src/extensions/core/maskeditor.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/extensions/core/maskeditor.ts b/src/extensions/core/maskeditor.ts index f4544bf8a..711679cb2 100644 --- a/src/extensions/core/maskeditor.ts +++ b/src/extensions/core/maskeditor.ts @@ -262,15 +262,15 @@ var styles = ` } #maskEditor_toolPanel { height: 100%; - width: var(--sidebar-width); + width: 4rem; z-index: 8888; background: var(--comfy-menu-bg); display: flex; flex-direction: column; } .maskEditor_toolPanelContainer { - width: var(--sidebar-width); - height: var(--sidebar-width); + width: 4rem; + height: 4rem; display: flex; justify-content: center; align-items: center; @@ -331,7 +331,7 @@ var styles = ` margin-bottom: 5px; } #maskEditor_pointerZone { - width: calc(100% - var(--sidebar-width) - 220px); + width: calc(100% - 4rem - 220px); height: 100%; } #maskEditor_uiContainer { @@ -703,8 +703,8 @@ var styles = ` } .maskEditor_toolPanelZoomIndicator { - width: var(--sidebar-width); - height: var(--sidebar-width); + width: 4rem; + height: 4rem; display: flex; flex-direction: column; justify-content: center;