Skip to content

Agent Zero AI framework

enhance header icons layout; update logo

Alessandro90eba8554dc6
diff --git a/webui/components/sidebar/left-sidebar.html b/webui/components/sidebar/left-sidebar.html
index 34f0c7443..9e681ca7e 100644
--- a/webui/components/sidebar/left-sidebar.html
+++ b/webui/components/sidebar/left-sidebar.html
@@ -85,7 +85,7 @@
/* Critical for allowing flex children to shrink */
overflow: hidden;
justify-content: space-between;
- margin-top: 3.5rem;
+ margin-top: 6rem;
padding: var(--spacing-md) var(--spacing-md) 0 var(--spacing-md);
}
diff --git a/webui/components/sidebar/top-section/header-icons.html b/webui/components/sidebar/top-section/header-icons.html
index 480f7dd99..f9a27347a 100644
--- a/webui/components/sidebar/top-section/header-icons.html
+++ b/webui/components/sidebar/top-section/header-icons.html
@@ -6,86 +6,212 @@
</script>
</head>
<body>
- <div class="icons-section" id="hide-button" x-data>
- <!-- Sidebar Toggle Button -->
- <button id="toggle-sidebar" class="toggle-sidebar-button" @click="$store.sidebar.toggle()" aria-label="Toggle Sidebar" aria-expanded="false">
- <span class="material-symbols-outlined" aria-hidden="true">menu</span>
- </button>
-
- <div id="logo-container">
- <a href="https://github.com/agent0ai/agent-zero" target="_blank" rel="noopener noreferrer" aria-label="Agent Zero on GitHub">
- <span id="a0-logo" role="img" aria-label="Agent Zero"></span>
- </a>
+ <div class="sidebar-header-stack">
+ <!--
+ Single chrome block for logo + toolbar (tokens aligned with .config-button in quick-actions).
+ Spacer reserves in-flow height so quick-actions clears the fixed overlay (see .left-panel-top margin-top).
+ -->
+ <div id="sidebar-header-panel" class="sidebar-header-panel">
+ <div id="logo-bar">
+ <a href="https://github.com/agent0ai/agent-zero" target="_blank" rel="noopener noreferrer" aria-label="Agent Zero on GitHub">
+ <span id="a0-logo" role="img" aria-label="Agent Zero"></span>
+ </a>
+ </div>
+
+ <div class="icons-section" id="hide-button" x-data>
+ <!-- Sidebar Toggle Button -->
+ <button id="toggle-sidebar" class="toggle-sidebar-button" @click="$store.sidebar.toggle()" aria-label="Toggle Sidebar" aria-expanded="false">
+ <span class="material-symbols-outlined" aria-hidden="true">menu</span>
+ </button>
+
+ <button class="config-button header-action-button" id="header-dashboard" @click="deselectChat()" title="Dashboard" aria-label="Dashboard">
+ <span class="material-symbols-outlined" aria-hidden="true">home</span>
+ </button>
+
+ <button class="config-button header-action-button" id="header-plugins" @click="openModal('components/plugins/list/plugin-list.html')" title="Plugins" aria-label="Plugins">
+ <span class="material-symbols-outlined" aria-hidden="true">extension</span>
+ </button>
+
+ <button class="config-button header-action-button" id="header-settings" @click="openModal('settings/settings.html')" title="Settings" aria-label="Settings">
+ <span class="material-symbols-outlined" aria-hidden="true">settings</span>
+ </button>
+ </div>
</div>
+
</div>
<style>
- /* Sidebar toggle button + logo container (migrated) */
- .toggle-sidebar-button {
- height: 2.6rem;
- width: 2.6rem;
+ .sidebar-header-stack {
+ /*
+ Panel top (viewport) minus .left-panel-top margin-top: flow starts at 5rem; reserve overlap region.
+ Tuned for: padding + logo 1.47rem + gap + icon row ~2.2rem + padding.
+ */
+ --sidebar-header-flow-clearance: calc(1.9rem + (var(--spacing-xs) * 5) + 1.47rem + 2.2rem - 5rem);
+ }
+
+ /* Shell: same language as .config-button (quick-actions.html) */
+ .sidebar-header-panel {
+ position: fixed;
+ top: var(--spacing-md);
+ left: var(--spacing-md);
+ width: calc(250px - (var(--spacing-md) * 2));
+ box-sizing: border-box;
+ z-index: 1004;
+ display: flex;
+ flex-direction: column;
+ align-items: stretch;
+ padding: var(--spacing-xs) var(--spacing-sm);
+ background-color: var(--color-panel);
+ border: 0.05rem solid var(--color-border);
+ border-radius: 8px;
+ transition: background-color var(--transition-speed),
+ border-color var(--transition-speed), box-shadow var(--transition-speed),
+ opacity var(--transition-speed) ease-in-out;
+ }
+
+ #logo-bar {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 100%;
+ padding-top: var(--spacing-xxs);
+ }
+
+ #logo-bar a {
+ color: inherit;
+ text-decoration: none;
+ width: min(100%, 11.75rem);
+ }
+
+ #hide-button {
+ display: grid;
+ grid-template-columns: repeat(4, 1fr);
+ gap: var(--spacing-xs);
+ width: 100%;
+ }
+
+ /* Toolbar icons sit on the panel surface (no nested config-button boxes) */
+ .sidebar-header-panel #hide-button .config-button,
+ .sidebar-header-panel .toggle-sidebar-button {
background-color: transparent;
border: none;
+ border-radius: 4px;
+ box-shadow: none;
+ }
+
+ .sidebar-header-panel #hide-button .config-button {
+ cursor: pointer;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ opacity: 0.8;
+ padding: var(--spacing-xs);
+ min-width: 0;
+ min-height: 2.2rem;
+ transition: background-color var(--transition-speed),
+ border-color var(--transition-speed), box-shadow var(--transition-speed),
+ opacity var(--transition-speed);
+ }
+
+ .sidebar-header-panel #hide-button .config-button .material-symbols-outlined {
+ font-size: 22px;
+ transition: transform 0.2s ease;
+ }
+
+ .sidebar-header-panel #hide-button .config-button:hover {
+ background-color: var(--color-background-hover);
+ opacity: 1;
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 18%, transparent);
+ z-index: 1;
+ position: relative;
+ }
+
+ .sidebar-header-panel #hide-button .config-button:active {
+ opacity: 0.5;
+ box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.06);
+ }
+
+ .toggle-sidebar-button {
color: var(--color-text);
opacity: 0.8;
cursor: pointer;
- left: var(--spacing-md);
- padding: 0.47rem 0.56rem;
- position: absolute;
- top: 1.4rem;
- z-index: 999;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ min-width: 0;
+ min-height: 2.2rem;
+ padding: var(--spacing-xs);
-webkit-transition: all var(--transition-speed) ease-in-out;
transition: all var(--transition-speed) ease-in-out;
}
- .toggle-sidebar-button:hover { background-color: transparent; opacity: 1; }
- .toggle-sidebar-button:active { opacity: 0.5; }
- .toggle-sidebar-button .material-symbols-outlined {
- font-size: 22px;
- -webkit-transition: all var(--transition-speed) ease;
- transition: all var(--transition-speed) ease;
+
+ .toggle-sidebar-button:hover {
+ background-color: var(--color-background-hover);
+ opacity: 1;
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 18%, transparent);
}
- .toggle-sidebar-button:active .material-symbols-outlined { -webkit-transform: scaleY(0.8); transform: scaleY(0.8); }
+ .toggle-sidebar-button:active {
+ opacity: 0.5;
+ box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.06);
+ }
- #logo-container {
- display: -webkit-flex;
- display: flex;
- align-items: center;
- justify-content: space-between;
- position: fixed;
- left: 4rem;
- top: var(--spacing-md);
- z-index: 1004;
- -webkit-transition: margin-left var(--transition-speed) ease-in-out;
- transition: margin-left var(--transition-speed) ease-in-out;
+ .toggle-sidebar-button .material-symbols-outlined {
+ font-size: 22px;
+ -webkit-transition: all var(--transition-speed) ease;
+ transition: all var(--transition-speed) ease;
+ }
+
+ .toggle-sidebar-button:active .material-symbols-outlined {
+ -webkit-transform: scaleY(0.8);
+ transform: scaleY(0.8);
}
- #logo-container a { color: inherit; text-decoration: none; }
+
#a0-logo {
display: block;
- height: 2.6rem;
- aspect-ratio: 120 / 50;
- -webkit-mask-image: url('/public/a0-fullDark.svg');
- mask-image: url('/public/a0-fullDark.svg');
+ width: 100%;
+ height: 1.64rem;
+ -webkit-mask-image: url(/public/a0-fullDark.svg);
+ mask-image: url(/public/a0-fullDark.svg);
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
-webkit-mask-size: contain;
mask-size: contain;
- -webkit-mask-position: center;
+ -webkit-mask-position: left;
mask-position: center;
background-color: var(--color-text);
opacity: 0.8;
-webkit-transition: opacity var(--transition-speed) ease, background-color var(--transition-speed) ease;
transition: opacity var(--transition-speed) ease, background-color var(--transition-speed) ease;
}
- #logo-container a:hover #a0-logo { opacity: 1; }
+
+ #logo-bar a:hover #a0-logo {
+ opacity: 1;
+ }
+
+ .light-mode .sidebar-header-panel {
+ background-color: var(--color-background);
+ color: #333333;
+ }
+
+ .light-mode .sidebar-header-panel #hide-button .config-button:hover,
+ .light-mode .sidebar-header-panel .toggle-sidebar-button:hover {
+ background-color: var(--color-background-hover);
+ }
+
+ .light-mode .sidebar-header-panel #hide-button .config-button:active,
+ .light-mode .sidebar-header-panel .toggle-sidebar-button:active {
+ background-color: var(--color-background-hover);
+ }
@media (max-width: 768px) {
- .toggle-sidebar-button { position: fixed; left: var(--spacing-md); z-index: 1004; }
- #logo-container { -webkit-transition: all 0.3s ease; transition: all 0.3s ease; z-index: 1004; }
+ .sidebar-header-panel {
+ -webkit-transition: all 0.3s ease;
+ transition: all 0.3s ease;
+ }
}
</style>
</body>
</html>
-
diff --git a/webui/components/sidebar/top-section/quick-actions.html b/webui/components/sidebar/top-section/quick-actions.html
index edc334bee..6d475878f 100644
--- a/webui/components/sidebar/top-section/quick-actions.html
+++ b/webui/components/sidebar/top-section/quick-actions.html
@@ -14,21 +14,6 @@
<x-extension id="sidebar-quick-actions-main-start"></x-extension>
- <!-- Dashboard -->
- <button class="config-button" id="dashboard" @click="deselectChat()" title="Dashboard">
- <span class="material-symbols-outlined">home</span>
- </button>
-
- <!-- Scheduler -->
- <button class="config-button" id="plugins" @click="openModal('components/plugins/list/plugin-list.html')" title="Plugins">
- <span class="material-symbols-outlined">extension</span>
- </button>
-
- <!-- Settings -->
- <button class="config-button" id="settings" @click="openModal('settings/settings.html')" title="Settings">
- <span class="material-symbols-outlined">settings</span>
- </button>
-
<x-extension id="sidebar-quick-actions-main-end"></x-extension>
<!-- Dropdown Toggle -->
@@ -126,6 +111,11 @@
gap: var(--spacing-xs);
}
+ .quick-actions-anchor {
+ display: none;
+ pointer-events: none;
+ }
+
#quick-actions > x-extension:not(:empty) {
display: contents;
}
diff --git a/webui/public/a0-fullDark.svg b/webui/public/a0-fullDark.svg
index 77716b528..03f147735 100644
--- a/webui/public/a0-fullDark.svg
+++ b/webui/public/a0-fullDark.svg
@@ -1 +1 @@
-<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 104 50" width="104" height="50"><style>.a{fill:#7a7a7a}</style><path class="a" d="m31.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-2 0.5-4.2-0.6-4.9-2.5-0.8-2 0.1-4.2 2-5.2 1.8-0.9 4-0.5 5.1 1.1zm-17.1-1.8c1.6 3 3 5.7 4.5 8.6h-1.7c-0.9-1.6-1.8-3.3-2.8-5-0.9 1.7-1.8 3.3-2.7 5h-1.8c1.5-2.8 3-5.6 4.5-8.6zm52.9 2h-2.9v-1.5h7.2v1.5h-2.7v6.6h-1.6v-6.6zm-36.3 14.8v2.1h2c0 0 0 1 0 1.6-0.8 0.1-1.7 0-2.5-0.1-0.7-0.2-1.2-0.8-1.2-1.5 0-1.2 0-2.5 0-3.7h7v1.6h-5.3q0 0 0 0zm-1.7 7v-2.2q0.7 0 1.3-0.1c0.1 0.3 0.1 0.7 0.3 0.7 0.3 0 3.5 0 5.3 0v1.6c0 0-6.9 0-6.9 0zm11-21.8v2h1.9c0 0 0 0.9 0 1.5-0.8 0-1.6 0-2.3-0.2-0.7-0.1-1.1-0.6-1.1-1.3-0.1-1.1-0.1-2.3-0.1-3.4h6.5v1.4h-4.9zm-1.5 6.5v-2q0.6 0 1.2-0.1c0.1 0.2 0.1 0.6 0.3 0.6 0.2 0 3.2 0 4.9 0v1.5h-6.4z"/></svg>
\ No newline at end of file
+<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 163 26" width="163" height="26"><style>.a{fill:#7a7a7a}</style><path class="a" d="m138.7 15.3c0.8 1.2 1.6 2.4 2.5 3.7h-2.7c-0.8-1-1.6-2.2-2.4-3.3h-3.1v3.3h-2.1v-11.3q1.8 0 3.6 0c1 0 2-0.1 3 0.1 1.6 0.2 2.8 1.1 3.2 2.7 0.3 1.7 0 3.3-1.5 4.4-0.2 0.1-0.3 0.2-0.5 0.4zm-5.7-1.7c1.5 0 2.8 0 4.2-0.1 0.9 0 1.3-0.7 1.3-1.6 0-1-0.4-1.7-1.3-1.8-1.4-0.2-2.8-0.1-4.2-0.1zm-29-5.8v1.6c-2.2 2.5-4.4 5-6.7 7.6h6.7v2.1h-9.6v-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