diff --git a/sitecompanion/popup.css b/sitecompanion/popup.css index aaa89b8..e2f4f8b 100644 --- a/sitecompanion/popup.css +++ b/sitecompanion/popup.css @@ -47,6 +47,8 @@ body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--page-bg); + --output-max-height-base: 280px; + --output-height-delta: 0px; } .title-block { @@ -188,10 +190,6 @@ select { width: 100%; } -body.custom-task-mode .output { - max-height: 210px; -} - .hidden { display: none !important; } @@ -322,14 +320,14 @@ button:active { padding: 8px; background: var(--output-bg); min-height: 210px; - max-height: 280px; + max-height: calc(var(--output-max-height-base) - var(--output-height-delta)); overflow: hidden; } .output-body { margin: 0; word-break: break-word; - max-height: 260px; + max-height: calc(var(--output-max-height-base) - var(--output-height-delta) - 20px); overflow-y: auto; font-size: 11px; line-height: 1.45; diff --git a/sitecompanion/popup.html b/sitecompanion/popup.html index 624ab0c..f37b4ed 100644 --- a/sitecompanion/popup.html +++ b/sitecompanion/popup.html @@ -78,7 +78,6 @@