openclaw - ✅(Solved) Fix [Bug] 审批弹窗内容过长时超出视口,无法点击批准按钮 [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#59377Fetched 2026-04-08 02:24:31
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
cross-referenced ×1

Fix Action

Fixed

PR fix notes

PR #59400: fix(ui): add scroll to approval modal when content overflows

Description (problem / solution / changelog)

Fixes issue #59377 - Approval modal content overflow when command blocks are long

Adds max-height and overflow-y to the approval modal card so users can scroll to see and click the approve button when content exceeds the viewport.

Changed files

  • docs/gateway/sandboxing.md (modified, +1/-1)
  • docs/install/migrating.md (modified, +1/-1)
  • docs/providers/index.md (modified, +1/-1)
  • docs/tools/exec-approvals.md (modified, +2/-2)
  • docs/tools/index.md (modified, +42/-0)
  • src/cli/cron-cli/shared.ts (modified, +5/-2)
  • ui/src/styles/components.css (modified, +2/-0)

Code Example

.approval-modal {
  max-height: 80vh;
  overflow-y: auto;
}
RAW_BUFFERClick to expand / collapse

问题描述

当执行包含长代码块的命令时,审批弹窗会超出浏览器视口,导致无法点击批准按钮。

复现步骤

  1. 执行包含长代码块的命令
  2. 系统弹出审批对话框
  3. 弹窗超出屏幕,按钮无法点击

建议修复

.approval-modal {
  max-height: 80vh;
  overflow-y: auto;
}

临时解决方案

  • 按 Tab 键聚焦到批准按钮,再按 Enter
  • 缩小浏览器页面(Ctrl + -)
  • 直接输入 /approve <id> allow-once 命令

环境信息

  • OpenClaw 版本: 2026.3.24
  • 界面: OpenClaw Control UI
  • 浏览器: Chrome/Firefox/Safari

extent analysis

TL;DR

Apply the suggested CSS fix to limit the approval modal's height and add overflow scrolling to prevent it from exceeding the browser viewport.

Guidance

  • Verify that the issue occurs consistently across different browsers (Chrome, Firefox, Safari) to ensure it's not browser-specific.
  • Test the suggested CSS fix (max-height: 80vh; overflow-y: auto;) to see if it resolves the issue without introducing any new problems.
  • As a temporary workaround, use the suggested keyboard shortcut (Tab + Enter) or browser zoom out (Ctrl + -) to access the approval button.
  • Consider testing the /approve <id> allow-once command as an alternative approval method.

Example

.approval-modal {
  max-height: 80vh;
  overflow-y: auto;
}

This CSS snippet is a direct suggestion from the issue and can be applied to the .approval-modal class to potentially fix the issue.

Notes

The provided CSS fix assumes that the approval modal's class is indeed .approval-modal. If the class name differs, the fix will need to be adjusted accordingly.

Recommendation

Apply the suggested CSS fix, as it directly addresses the reported issue and provides a straightforward solution to prevent the approval modal from exceeding the browser viewport.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - ✅(Solved) Fix [Bug] 审批弹窗内容过长时超出视口,无法点击批准按钮 [1 pull requests, 1 participants]