Allow history or queue list to expand and fill screen size

This commit is contained in:
Raphael Walker 2024-06-18 13:16:24 +02:00
parent a45df69570
commit 5049c14175
No known key found for this signature in database
GPG Key ID: E6F58BE3395D3AA8
2 changed files with 7 additions and 4 deletions

View File

@ -265,7 +265,7 @@ class ComfyList {
}
async show() {
this.element.style.display = "block";
this.element.style.display = "flex";
this.button.textContent = "Close";
await this.load();
@ -412,7 +412,6 @@ export class ComfyUI {
this.menuContainer = $el("div.comfy-menu", { parent: document.body }, [
$el("div.drag-handle.comfy-menu-header", {
style: {
overflow: "hidden",
position: "relative",
width: "100%",
cursor: "default"

View File

@ -117,6 +117,7 @@ body {
padding: 10px;
border-radius: 0 8px 8px 8px;
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
max-height: 95vh;
}
.comfy-menu-header {
@ -233,11 +234,14 @@ span.drag-handle::after {
margin-bottom: 10px;
border-color: var(--border-color);
border-style: solid;
overflow-y: auto;
display: flex;
flex-direction: column;
overflow-y: hidden;
}
.comfy-list-items {
overflow-y: scroll;
max-height: 100px;
overflow-y: auto;
min-height: 25px;
background-color: var(--comfy-input-bg);
padding: 5px;