mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-17 04:01:13 +00:00
Introduce the shared surfaces frontend service and stylesheet so Browser and Desktop can register docked or floating live UI without special cases in modals.js. Update Browser and right-canvas integration to preserve active viewers across canvas/modal switches and avoid creating blank tabs unless explicitly requested.
83 lines
1.8 KiB
CSS
83 lines
1.8 KiB
CSS
.modal.surface-modal-parked,
|
|
.modal.modal-surface-parked {
|
|
display: block;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.modal.surface-modal-parked .modal-inner,
|
|
.modal.modal-surface-parked .modal-inner {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.modal.surface-floating,
|
|
.modal.modal-floating {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.modal.surface-floating .modal-inner,
|
|
.modal.modal-floating .modal-inner {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.surface-switcher,
|
|
.modal-surface-switcher {
|
|
display: grid;
|
|
grid-auto-flow: column;
|
|
grid-auto-columns: 34px;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.surface-dock-button,
|
|
.surface-button,
|
|
.modal-dock-button,
|
|
.modal-surface-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 34px;
|
|
height: 34px;
|
|
min-width: 34px;
|
|
min-height: 34px;
|
|
padding: 0;
|
|
border: 1px solid transparent;
|
|
border-radius: 7px;
|
|
background: transparent;
|
|
color: var(--color-text);
|
|
cursor: pointer;
|
|
opacity: 0.72;
|
|
transition: background-color 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
|
|
}
|
|
|
|
.surface-dock-button:hover,
|
|
.surface-button:hover,
|
|
.surface-button.is-active,
|
|
.modal-dock-button:hover,
|
|
.modal-surface-button:hover,
|
|
.modal-surface-button.is-active {
|
|
opacity: 1;
|
|
border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
|
|
background: color-mix(in srgb, var(--color-background-hover) 72%, transparent);
|
|
}
|
|
|
|
.surface-dock-button .material-symbols-outlined,
|
|
.surface-button .material-symbols-outlined,
|
|
.modal-dock-button .material-symbols-outlined,
|
|
.modal-surface-button .material-symbols-outlined {
|
|
font-size: 19px;
|
|
}
|
|
|
|
.surface-image,
|
|
.modal-surface-image {
|
|
display: block;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 6px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.surface-resize-handle {
|
|
position: absolute;
|
|
touch-action: none;
|
|
}
|