fix zindex on hover

This commit is contained in:
pythongosssss 2024-03-20 19:14:07 +00:00
parent 2ec11cb3b0
commit ad355c601d
2 changed files with 9 additions and 1 deletions

View File

@ -26,7 +26,7 @@ export class ComfySplitButton {
this.popup = new ComfyPopup({
target: this.element,
container: position === "relative" ? this.element : document.body,
classList: "comfyui-split-button-popup",
classList: "comfyui-split-button-popup" + (mode === "hover" ? " hover" : ""),
closeOnEscape: mode === "click",
position,
horizontal,

View File

@ -89,6 +89,9 @@
overflow: auto;
}
.comfyui-split-button-popup.hover {
z-index: 2001;
}
.comfyui-split-button-popup > .comfyui-button {
border: none;
background-color: transparent;
@ -243,6 +246,7 @@
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
z-index: 400;
}
.comfyui-workflows-panel {
@ -310,6 +314,10 @@
margin-bottom: 5px;
}
.comfyui-workflows-open li:first-of-type {
font-weight: bold;
}
.comfyui-workflows-favorites:empty {
display: none;
}