From 4e1dfef85f9638c3e08d4069f5e5573ee51e4bfc Mon Sep 17 00:00:00 2001 From: moltenhub-bot Date: Mon, 11 May 2026 09:26:11 -0700 Subject: [PATCH] chore: the library should fill the available verticle space; so more Co-authored-by: Molten Bot 000 <260473928+moltenbot000@users.noreply.github.com> --- internal/web/static/index.html | 1 + internal/web/static/style.css | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/internal/web/static/index.html b/internal/web/static/index.html index 33f50cc0..59da9e76 100644 --- a/internal/web/static/index.html +++ b/internal/web/static/index.html @@ -7360,6 +7360,7 @@

Connect to Hub

const isBuilder = state.promptMode === "builder"; const isLibrary = state.promptMode === "library"; const isJSON = state.promptMode === "json"; + document.body.dataset.promptMode = state.promptMode; syncPromptModeLinks(); syncPromptTitleModes(); if (promptPanelCopy) { diff --git a/internal/web/static/style.css b/internal/web/static/style.css index 04714dc4..7ef696c4 100644 --- a/internal/web/static/style.css +++ b/internal/web/static/style.css @@ -1117,6 +1117,29 @@ body .right-col.prompt-collapsed.task-list-hidden { gap: 10px; } +body[data-app-display="studio"][data-prompt-mode="library"] .prompt-wrap:not(.prompt-collapsed) { + min-height: min(760px, calc(100dvh - var(--hub-content-bottom-padding) - 8px)); +} + +body[data-app-display="studio"][data-prompt-mode="library"] .prompt-wrap:not(.prompt-collapsed) .prompt-form { + grid-template-rows: minmax(0, 1fr) auto; +} + +body[data-app-display="studio"][data-prompt-mode="library"] .prompt-wrap:not(.prompt-collapsed) .prompt-compose-stack { + grid-template-rows: minmax(0, 1fr); +} + +body[data-app-display="studio"][data-prompt-mode="library"] #prompt-library-panel { + grid-template-rows: auto auto auto minmax(0, 1fr); + min-height: 0; +} + +body[data-app-display="studio"][data-prompt-mode="library"] #prompt-library-panel > .prompt-field:last-child { + display: flex; + flex-direction: column; + min-height: 0; +} + .prompt-mode-row { margin-bottom: 2px; } @@ -2111,6 +2134,12 @@ select.prompt-control { padding-right: 2px; } +body[data-app-display="studio"][data-prompt-mode="library"] .library-task-list { + flex: 1 1 auto; + max-height: none; + min-height: 0; +} + .library-task-empty, .library-task-option { border-radius: var(--radius-card);