Agent Zero AI framework
canvas + browser CSS polish
Alessandro10e8f5d01a4f
diff --git a/plugins/_browser/webui/browser-panel.html b/plugins/_browser/webui/browser-panel.htmlindex 108b9c966..e10baaaf5 100644--- a/plugins/_browser/webui/browser-panel.html+++ b/plugins/_browser/webui/browser-panel.html@@ -305,11 +305,6 @@border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);}- .modal-inner.browser-modal .modal-title {- font-size: 0.95rem;- letter-spacing: 0;- }-.modal-inner.browser-modal .modal-close {font-size: 1.35rem;line-height: 1;diff --git a/plugins/_office/webui/office-panel.html b/plugins/_office/webui/office-panel.htmlindex 5f8143e78..957949601 100644--- a/plugins/_office/webui/office-panel.html+++ b/plugins/_office/webui/office-panel.html@@ -148,12 +148,7 @@background: color-mix(in srgb, var(--color-background) 92%, #000 8%);border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);}-- .modal-inner.office-modal .modal-title {- font-size: 0.95rem;- letter-spacing: 0;- }-+.modal-inner.office-modal .modal-close {font-size: 1.35rem;line-height: 1;diff --git a/webui/components/canvas/right-canvas-store.js b/webui/components/canvas/right-canvas-store.jsindex 19b820fb5..400a5e012 100644--- a/webui/components/canvas/right-canvas-store.js+++ b/webui/components/canvas/right-canvas-store.js@@ -257,10 +257,11 @@ const model = {widthStyle() {if (this.isMobileMode) return "";+ if (!this.isOpen) return "width: 0;";if (this.isOverlayMode) {return `width: min(${this.width}px, calc(100vw - 44px));`;}- return `width: ${this.isOpen ? this.width : 52}px;`;+ return `width: ${this.width}px;`;},getSurface(id) {diff --git a/webui/components/canvas/right-canvas.css b/webui/components/canvas/right-canvas.cssindex 5bb931ba1..436a4cd06 100644--- a/webui/components/canvas/right-canvas.css+++ b/webui/components/canvas/right-canvas.css@@ -38,10 +38,6 @@ body.right-canvas-resizing {transition: width 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;}-.right-canvas.is-closed .right-canvas-shell {- display: none;-}-.right-canvas-rail {display: flex;flex: 0 0 52px;@@ -53,6 +49,33 @@ body.right-canvas-resizing {background: color-mix(in srgb, var(--color-background) 92%, #000 8%);}+.right-canvas.is-closed {+ width: 0 !important;+ min-width: 0;+ overflow: visible;+ border-left: 0;+ background: transparent;+}++.right-canvas.is-closed .right-canvas-shell,+.right-canvas.is-closed .right-canvas-resize-handle {+ display: none;+}++.right-canvas.is-closed .right-canvas-rail {+ position: absolute;+ top: 50%;+ right: 100%;+ z-index: 2;+ height: auto;+ max-height: min(70vh, calc(100vh - 32px));+ transform: translateY(-50%);+ border: 1px solid var(--right-canvas-border);+ border-right: 0;+ border-radius: 8px 0 0 8px;+ box-shadow: -10px 0 30px rgba(0, 0, 0, 0.24);+}+.right-canvas-rail-button,.right-canvas-icon-button,.right-canvas-tab {@@ -251,23 +274,6 @@ body.right-canvas-overlay-mode .right-canvas.is-open {transform: translateX(0);}-body.right-canvas-overlay-mode .right-canvas.is-closed {- overflow: visible;-}--body.right-canvas-overlay-mode .right-canvas.is-closed .right-canvas-rail {- position: absolute;- right: 100%;- top: 50%;- height: auto;- max-height: 70vh;- transform: translateY(-50%);- border: 1px solid var(--right-canvas-border);- border-right: 0;- border-radius: 8px 0 0 8px;- box-shadow: -10px 0 30px rgba(0, 0, 0, 0.24);-}-body.right-canvas-overlay-mode .right-canvas-resize-handle {display: none;}diff --git a/webui/css/modals.css b/webui/css/modals.cssindex df94a5655..de33bae42 100644--- a/webui/css/modals.css+++ b/webui/css/modals.css@@ -95,6 +95,11 @@ some classes like modal-header are shared between the old and the new system */white-space: nowrap;}+.modal-title {+ font-size: 0.95rem;+ letter-spacing: 0;+}+/* Modal Subheader */.modal-subheader {display: inline;diff --git a/webui/index.css b/webui/index.cssindex 604475b20..e3fbd64db 100644--- a/webui/index.css+++ b/webui/index.css@@ -1335,7 +1335,7 @@ a:active {.settings-modal-title {margin-top: 0;margin-bottom: 24px;- font-size: 1.8rem;+ font-size: 0.95rem;text-align: center;border-bottom: 1px solid var(--color-border);padding-bottom: 12px;