Skip to content

Agent Zero AI framework

unify scrollbars and fix tunnel spinner

3clyp508c3daa68eace
diff --git a/webui/components/modals/image-viewer/image-viewer.html b/webui/components/modals/image-viewer/image-viewer.html
index 836129dab..a554a60d8 100644
--- a/webui/components/modals/image-viewer/image-viewer.html
+++ b/webui/components/modals/image-viewer/image-viewer.html
@@ -68,6 +68,28 @@
position: relative;
}
+ /* Unified scrollbar styling for modal content */
+ .image-display-wrapper::-webkit-scrollbar {
+ width: 6px;
+ height: 6px;
+ }
+
+ .image-display-wrapper::-webkit-scrollbar-track {
+ background: transparent;
+ margin: 4px 0;
+ border-radius: 6px;
+ }
+
+ .image-display-wrapper::-webkit-scrollbar-thumb {
+ background-color: rgba(155, 155, 155, 0.5);
+ border-radius: 6px;
+ transition: background-color 0.2s ease;
+ }
+
+ .image-display-wrapper::-webkit-scrollbar-thumb:hover {
+ background-color: rgba(155, 155, 155, 0.7);
+ }
+
.modal-image {
max-width: 100%;
max-height: 100%;
diff --git a/webui/components/modals/memory/memory-detail-modal.html b/webui/components/modals/memory/memory-detail-modal.html
index 4acaae105..5fe30c678 100644
--- a/webui/components/modals/memory/memory-detail-modal.html
+++ b/webui/components/modals/memory/memory-detail-modal.html
@@ -308,6 +308,41 @@
overflow-y: auto;
max-height: 50em;
}
+
+ /* Unified scrollbar styling for modal content */
+ .memory-content-display p::-webkit-scrollbar,
+ textarea.memory-content-display::-webkit-scrollbar {
+ width: 6px;
+ height: 6px;
+ }
+
+ .memory-content-display p::-webkit-scrollbar-track,
+ textarea.memory-content-display::-webkit-scrollbar-track {
+ background: transparent;
+ margin: 4px 0;
+ border-radius: 6px;
+ }
+
+ .memory-content-display p::-webkit-scrollbar-thumb,
+ textarea.memory-content-display::-webkit-scrollbar-thumb {
+ background-color: rgba(155, 155, 155, 0.5);
+ border-radius: 6px;
+ transition: background-color 0.2s ease;
+ }
+
+ .memory-content-display p::-webkit-scrollbar-thumb:hover,
+ textarea.memory-content-display::-webkit-scrollbar-thumb:hover {
+ background-color: rgba(155, 155, 155, 0.7);
+ }
+
+ /* Transparent scrollbar for metadata sidebar */
+ .metadata-sidebar {
+ scrollbar-width: none; /* Firefox */
+ }
+
+ .metadata-sidebar::-webkit-scrollbar {
+ display: none; /* Chrome/Safari/Webkit */
+ }
.metadata-sidebar h4 {
margin: 0 0 1rem 0;
diff --git a/webui/components/notifications/notification-modal.html b/webui/components/notifications/notification-modal.html
index a8a9d1c14..7d65a6853 100644
--- a/webui/components/notifications/notification-modal.html
+++ b/webui/components/notifications/notification-modal.html
@@ -140,12 +140,13 @@
}
.notification-list::-webkit-scrollbar-thumb {
- background-color: rgba(155, 155, 155, 0.3);
+ background-color: rgba(155, 155, 155, 0.5);
border-radius: 6px;
+ transition: background-color 0.2s ease;
}
.notification-list::-webkit-scrollbar-thumb:hover {
- background-color: rgba(155, 155, 155, 0.5);
+ background-color: rgba(155, 155, 155, 0.7);
}
/* Include all the notification item styles from the CSS file */
diff --git a/webui/components/settings/settings.html b/webui/components/settings/settings.html
index d8a0dbcb3..d3185ee52 100644
--- a/webui/components/settings/settings.html
+++ b/webui/components/settings/settings.html
@@ -55,21 +55,21 @@
<!-- Settings sections for agent, external, developer, mcp, backup tabs -->
<div id="settings-sections">
- <template x-if="$store.settingsStore.activeTab === 'agent'">
+ <div x-show="$store.settingsStore.activeTab === 'agent'">
<x-component path="settings/agent/agent-settings.html"></x-component>
- </template>
- <template x-if="$store.settingsStore.activeTab === 'external'">
+ </div>
+ <div x-show="$store.settingsStore.activeTab === 'external'">
<x-component path="settings/external/external-settings.html"></x-component>
- </template>
- <template x-if="$store.settingsStore.activeTab === 'mcp'">
+ </div>
+ <div x-show="$store.settingsStore.activeTab === 'mcp'">
<x-component path="settings/mcp/mcp-settings.html"></x-component>
- </template>
- <template x-if="$store.settingsStore.activeTab === 'developer'">
+ </div>
+ <div x-show="$store.settingsStore.activeTab === 'developer'">
<x-component path="settings/developer/developer-settings.html"></x-component>
- </template>
- <template x-if="$store.settingsStore.activeTab === 'backup'">
+ </div>
+ <div x-show="$store.settingsStore.activeTab === 'backup'">
<x-component path="settings/backup/backup-settings.html"></x-component>
- </template>
+ </div>
</div>
</div>
diff --git a/webui/components/settings/tunnel/tunnel-section.html b/webui/components/settings/tunnel/tunnel-section.html
index cc385e943..93557508d 100644
--- a/webui/components/settings/tunnel/tunnel-section.html
+++ b/webui/components/settings/tunnel/tunnel-section.html
@@ -36,7 +36,7 @@
</div>
</div>
<!-- Loading spinner for tunnel operations -->
- <div class="loading-spinner" x-show="$store.tunnelStore.isLoading">
+ <div class="tunnel-loading-status" x-show="$store.tunnelStore.isLoading">
<span class="icon material-symbols-outlined spin">progress_activity</span>
<span x-text="$store.tunnelStore.loadingText || 'Processing tunnel request...'"></span>
</div>
@@ -164,7 +164,7 @@
line-height: 1.5;
}
- .loading-spinner {
+ .tunnel-loading-status {
display: flex;
justify-content: center;
align-items: center;
@@ -175,7 +175,7 @@
color: var(--text-color-secondary);
}
- .loading-spinner i {
+ .tunnel-loading-status .icon {
font-size: 1.5rem;
margin-right: 10px;
color: var(--accent-color);
diff --git a/webui/css/modals.css b/webui/css/modals.css
index 20996c5b2..91c1445fb 100644
--- a/webui/css/modals.css
+++ b/webui/css/modals.css
@@ -162,7 +162,7 @@ some classes like modal-header are shared between the old and the new system */
margin: 4px 0;
border-radius: 6px;
}
-.modal-content::-webkit-scrollbar-thumb, .modal-scroll::webkit-scrollbar-thumb {
+.modal-content::-webkit-scrollbar-thumb, .modal-scroll::-webkit-scrollbar-thumb {
background-color: rgba(155, 155, 155, 0.5);
border-radius: 6px;
transition: background-color 0.2s ease;
diff --git a/webui/css/settings.css b/webui/css/settings.css
index 094236a8d..7918a31e3 100644
--- a/webui/css/settings.css
+++ b/webui/css/settings.css
@@ -302,7 +302,6 @@ nav ul li a img {
z-index: 1;
min-width: min-content;
width: auto;
- max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -323,6 +322,8 @@ nav ul li a img {
-4px 0 8px -2px var(--color-border); */
font-weight: bold;
background-color: var(--color-panel);
+ min-width: min-content;
+ max-width: 150px;
}
/* Light mode overrides */
@@ -367,8 +368,12 @@ nav ul li a img {
.settings-tab {
flex: 0 0 auto;
text-align: center;
- min-width: 60px;
- max-width: 80px;
+ min-width: min-content;
+ max-width: 150px;
+ }
+ .settings-tab.active {
+ min-width: min-content;
+ max-width: 150px;
}
}