From 6ccd48e81f4efdff30fbc3be55ddd18fec13164a Mon Sep 17 00:00:00 2001 From: Alessandro <155005371+3clyp50@users.noreply.github.com> Date: Tue, 23 Jun 2026 14:17:13 +0200 Subject: [PATCH] Group mobile browser toolbar controls Move Annotate and Browser settings into the Browser toolbar so narrow views keep navigation and controls on one row above a full-width address bar. Make the Browser panel itself the container-query boundary so mobile modals and narrow right-canvas panels share the same polished toolbar layout, with regression and DOX coverage. --- plugins/_browser/AGENTS.md | 2 +- plugins/_browser/webui/browser-panel.html | 248 +++++++++++----------- tests/test_browser_agent_regressions.py | 15 +- 3 files changed, 139 insertions(+), 126 deletions(-) diff --git a/plugins/_browser/AGENTS.md b/plugins/_browser/AGENTS.md index 06e3faf89..70211d3a0 100644 --- a/plugins/_browser/AGENTS.md +++ b/plugins/_browser/AGENTS.md @@ -19,7 +19,7 @@ - Preserve Playwright lifecycle cleanup and WebSocket viewer compatibility across regular host browsers and Electron WebContentsView embedding. - Keep the WebUI Browser inside its own modal/canvas affordance; do not replace it with page-level navigation. - Default the visible WebUI Browser to live CDP screencast for responsiveness. Keep lightweight CDP/DOM state snapshots as the fallback transport. -- Keep narrow WebUI Browser controls usable by placing navigation buttons above a full-width address bar. +- Keep narrow WebUI Browser controls usable by grouping navigation with Annotate/settings above a full-width address bar. - Prefer DOM/CDP browser actions with refs, selectors, frame-chain refs, and screenshots over viewport coordinate input. Coordinates remain a visual fallback. - Do not hardcode user-specific browser paths or secrets. diff --git a/plugins/_browser/webui/browser-panel.html b/plugins/_browser/webui/browser-panel.html index be8301d73..7ad3902f5 100644 --- a/plugins/_browser/webui/browser-panel.html +++ b/plugins/_browser/webui/browser-panel.html @@ -42,118 +42,6 @@ -
- -
- - -
-
@@ -173,6 +61,119 @@ +
+ +
+ + +
+
+
language ') + nav_index = panel.index('
', toolbar_index) + controls_index = panel.index('
', toolbar_index) + address_index = panel.index('