From 053c5b05c1f61316b01f1b3b8b7ebaf29c275381 Mon Sep 17 00:00:00 2001 From: Ziy Date: Thu, 16 Apr 2026 11:28:20 +0800 Subject: [PATCH] [Dashboard] Fix exec approval modal overflow for long command content (#67082) Merged via squash. Prepared head SHA: 5d14e78381a55fd18dd501f673a418f370f676d5 Co-authored-by: Ziy1-Tan <49604965+Ziy1-Tan@users.noreply.github.com> Co-authored-by: hxy91819 <8814856+hxy91819@users.noreply.github.com> Reviewed-by: @hxy91819 --- CHANGELOG.md | 1 + ui/src/styles/components.css | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c5cfe7c4718..8287fdf426a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ Docs: https://docs.openclaw.ai - Agents/local models: clarify low-context preflight hints for self-hosted models, point config-backed caps at the relevant OpenClaw setting, and stop suggesting larger models when `agents.defaults.contextTokens` is the real limit. (#66236) Thanks @ImLukeF. - Dreaming/memory-core: change the default `dreaming.storage.mode` from `inline` to `separate` so Dreaming phase blocks (`## Light Sleep`, `## REM Sleep`) land in `memory/dreaming/{phase}/YYYY-MM-DD.md` instead of being injected into `memory/YYYY-MM-DD.md`. Daily memory files no longer get dominated by structured candidate output, and the daily-ingestion scanner that already strips dream marker blocks no longer has to compete with hundreds of phase-block lines on every run. Operators who want the previous behavior can opt in by setting `plugins.entries.memory-core.config.dreaming.storage.mode: "inline"`. (#66412) Thanks @mjamiv. - Control UI/Overview: fix false-positive "missing" alerts on the Model Auth status card for aliased providers, env-backed OAuth with auth.profiles, and unresolvable env SecretRefs. (#67253) Thanks @omarshahine. +- Dashboard: constrain exec approval modal overflow on desktop so long command content no longer pushes action buttons out of view. (#67082) Thanks @Ziy1-Tan. ## 2026.4.15-beta.1 diff --git a/ui/src/styles/components.css b/ui/src/styles/components.css index 0aed9df44f8..96b3888dff6 100644 --- a/ui/src/styles/components.css +++ b/ui/src/styles/components.css @@ -2990,6 +2990,9 @@ td.data-table-key-col { .exec-approval-card { width: min(540px, 100%); + max-height: calc(100dvh - 48px); + display: flex; + flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); @@ -3026,10 +3029,12 @@ td.data-table-key-col { .exec-approval-command { margin-top: 12px; + max-height: min(40dvh, 320px); padding: 10px 12px; background: var(--secondary); border: 1px solid var(--border); border-radius: var(--radius-md); + overflow-y: auto; word-break: break-word; white-space: pre-wrap; font-family: var(--mono);