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

View File

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