mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-19 16:31:30 +00:00
Extend Browser into a reusable panel that can run in either the Universal Canvas or the floating modal. Add canvas registration, dock/undock behavior, and keep the existing modal path working as a fallback. Stabilize tab switching with viewer tokens and stale-frame rejection, prevent command snapshots from crossing active tabs, and keep tab changes responsive. Improve canvas navigation and scrolling by making screencast polling non-blocking and removing page-settle waits from wheel input, so the visible frame updates promptly without stretch/catch-up artifacts. Polish Browser busy feedback with a spinner-only status affordance to avoid misleading “updating browser” copy.
17 lines
785 B
HTML
17 lines
785 B
HTML
<button
|
|
type="button"
|
|
class="text-button browser-chat-action"
|
|
title="Show or hide Browser"
|
|
aria-label="Show or hide Browser"
|
|
data-bs-placement="top"
|
|
data-bs-trigger="hover"
|
|
@click="$store.rightCanvas ? $store.rightCanvas.toggle('browser') : (window.toggleModal ? window.toggleModal('/plugins/_browser/webui/main.html') : window.openModal('/plugins/_browser/webui/main.html'))"
|
|
>
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="14" height="14" aria-hidden="true">
|
|
<rect x="3" y="4" width="18" height="16" rx="2"></rect>
|
|
<path d="M3 8h18"></path>
|
|
<path d="M7 6h.01"></path>
|
|
<path d="M10 6h.01"></path>
|
|
</svg>
|
|
<p>Browser</p>
|
|
</button>
|