Add docking functionality to Model Linker dialog

This commit is contained in:
Dariusz L
2026-05-29 03:38:23 +02:00
parent ba9ae41f1e
commit af2a3cd645
3 changed files with 469 additions and 7 deletions
+65
View File
@@ -145,6 +145,14 @@
padding: 0;
}
#model-linker-modal .ml-window-btn--dock {
width: 46px;
min-width: 46px;
height: 100%;
min-height: 40px;
padding: 0;
}
#model-linker-modal .ml-window-btn--close {
width: 46px;
min-width: 46px;
@@ -448,6 +456,63 @@
transform: scale(1.05);
}
.comfyui-model-linker-tab-button .mdi,
.comfyui-model-linker-tab-button .mdi-link-variant {
font-size: 18px;
line-height: 1;
}
.ml-sidebar-dock-panel {
box-sizing: border-box;
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
overflow: hidden;
color: var(--ml-text);
background: var(--ml-bg);
}
#model-linker-modal.ml-is-docked {
position: relative;
inset: auto;
top: auto;
left: auto;
transform: none;
width: 100%;
height: 100%;
max-width: none;
max-height: none;
min-width: 0;
min-height: 0;
border: 0;
border-radius: 0;
box-shadow: none;
resize: none;
z-index: auto;
}
#model-linker-modal .ml-window-btn--undock {
display: none;
width: 46px;
min-width: 46px;
height: 100%;
min-height: 40px;
padding: 0;
}
#model-linker-modal.ml-is-docked .ml-window-btn--undock {
display: flex;
}
#model-linker-modal.ml-is-docked .ml-window-btn--dock {
display: none;
}
#model-linker-modal.ml-is-docked .ml-window-btn--fullscreen {
display: none;
}
@keyframes ml-slide-down {
from {
opacity: 0;