From 5049c14175e63d46621c03646816fb0c8ae95f6f Mon Sep 17 00:00:00 2001 From: Raphael Walker Date: Tue, 18 Jun 2024 13:16:24 +0200 Subject: [PATCH] Allow history or queue list to expand and fill screen size --- web/scripts/ui.js | 3 +-- web/style.css | 8 ++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/web/scripts/ui.js b/web/scripts/ui.js index 72e43d357..ec1f47c32 100644 --- a/web/scripts/ui.js +++ b/web/scripts/ui.js @@ -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" diff --git a/web/style.css b/web/style.css index cf7a8b9ea..6a6268e85 100644 --- a/web/style.css +++ b/web/style.css @@ -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;