From 12bc7af0671ac7d2f9a6bd4d344031818fb24a43 Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Sun, 2 Jun 2024 01:54:55 +0200 Subject: [PATCH] feat: set row height to 84, exactly matching 3 lines for positive prompt eliminate need for JS to resize positive prompt onUiLoaded --- css/style.css | 8 ++------ javascript/viewer.js | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/css/style.css b/css/style.css index a216d482..6ed0f628 100644 --- a/css/style.css +++ b/css/style.css @@ -83,16 +83,12 @@ div:has(> #positive_prompt) { background: var(--background-fill-primary); } -#positive_prompt textarea { - height: 80px; -} - .type_row { - height: 80px !important; + height: 84px !important; } .type_row_half { - height: 32px !important; + height: 34px !important; } .refresh_button { diff --git a/javascript/viewer.js b/javascript/viewer.js index d3153734..3df32ccf 100644 --- a/javascript/viewer.js +++ b/javascript/viewer.js @@ -55,7 +55,6 @@ window.addEventListener('resize', (e) => { onUiLoaded(async () => { resized(); - setTimeout(() => document.querySelector("#positive_prompt textarea").style.height = "80px"); }); function on_style_selection_blur() {