Skip to content

Agent Zero AI framework

no-scrollbar utility class

3clyp50817c580b36d1
diff --git a/webui/components/chat/message-queue/message-queue.html b/webui/components/chat/message-queue/message-queue.html
index c40038ed4..ac40ca18e 100644
--- a/webui/components/chat/message-queue/message-queue.html
+++ b/webui/components/chat/message-queue/message-queue.html
@@ -21,7 +21,7 @@
</button>
</div>
</div>
- <div class="queue-items">
+ <div class="queue-items no-scrollbar">
<template x-for="(item, index) in $store.messageQueue.allItems" :key="item.id">
<div class="queue-item" :class="{ 'queue-item-pending': item.pending }">
<div class="queue-item-content">
@@ -120,16 +120,6 @@
overflow-y: auto;
}
- .queue-items::-webkit-scrollbar {
- flex: 1;
- min-height: 0;
- overflow: scroll;
- scroll-behavior: smooth;
- max-height: 100%;
- scrollbar-width: none;
- -ms-overflow-style: none;
- }
-
.queue-item {
display: flex;
align-items: center;
diff --git a/webui/components/messages/process-group/process-group.css b/webui/components/messages/process-group/process-group.css
index 34146ef6f..2c63e0b57 100644
--- a/webui/components/messages/process-group/process-group.css
+++ b/webui/components/messages/process-group/process-group.css
@@ -464,12 +464,24 @@
transition: grid-template-rows 0.2s ease-out, opacity 0.15s ease-out, margin-top 0.2s ease-out;
overflow: hidden;
-webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
- scrollbar-width: none; /* Firefox */
- -ms-overflow-style: none; /* IE/Edge */
overscroll-behavior: contain; /* avoid scroll chaining */
max-width: 100%;
}
+.process-step-detail,
+.process-step-detail-scroll {
+ scrollbar-width: none; /* Firefox */
+ -ms-overflow-style: none; /* IE/Edge */
+}
+
+/* Hide scrollbar for Chrome/Safari/Webkit */
+.process-step-detail::-webkit-scrollbar,
+.process-step-detail-scroll::-webkit-scrollbar {
+ display: none;
+ width: 0;
+ height: 0;
+}
+
.process-step:not(.expanded) > .process-step-detail {
margin-top: 0;
}
@@ -480,18 +492,6 @@
max-height: 0;
overflow: hidden;
}
- /* Hide scrollbar for Chrome/Safari/Webkit */
-.process-step-detail::-webkit-scrollbar {
- display: none;
- width: 0;
- height: 0;
-}
-
-.process-step-detail-scroll::-webkit-scrollbar {
- display: none;
- width: 0;
- height: 0;
-}
.process-step-detail > .process-step-detail-scroll {
min-height: 0;
@@ -514,8 +514,9 @@
box-sizing: content-box;
border-radius: var(--border-radius-sm);
-webkit-overflow-scrolling: touch;
- scrollbar-width: thin;
- scrollbar-color: rgba(255,255,255,0.2) transparent;
+ scrollbar-width: none;
+ -ms-overflow-style: none;
+ scrollbar-color: transparent;
/* overscroll-behavior: contain; */
}
@@ -531,8 +532,6 @@
font-size: var(--font-size-xs);
line-height: 1.5;
-webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
- scrollbar-width: none; /* Firefox */
- -ms-overflow-style: none; /* IE/Edge */
overscroll-behavior-x: contain; /* avoid scroll chaining */
}
diff --git a/webui/components/modals/context/context.html b/webui/components/modals/context/context.html
index 5e2a5222d..f9851443c 100644
--- a/webui/components/modals/context/context.html
+++ b/webui/components/modals/context/context.html
@@ -27,7 +27,7 @@
<!-- Content (ACE Editor) -->
<template x-if="!$store.context.isLoading && !$store.context.error">
- <div id="context-viewer-container"></div>
+ <div id="context-viewer-container" class="no-scrollbar"></div>
</template>
</div>
@@ -87,10 +87,6 @@
overflow: auto;
}
- #context-viewer-container::-webkit-scrollbar {
- width: 0;
- }
-
/* ACE Editor Scrollbar */
.ace_scrollbar-v {
overflow-y: auto;
diff --git a/webui/components/modals/file-editor/file-edit-modal.html b/webui/components/modals/file-editor/file-edit-modal.html
index e2965ee5c..6927a6779 100644
--- a/webui/components/modals/file-editor/file-edit-modal.html
+++ b/webui/components/modals/file-editor/file-edit-modal.html
@@ -39,7 +39,7 @@
</div>
<div class="file-edit-path" x-text="$store.fileEditor.editPathLabel()"></div>
</div>
- <div id="file-editor-container"></div>
+ <div id="file-editor-container" class="no-scrollbar"></div>
</div>
</template>
</div>
@@ -121,12 +121,6 @@
min-height: 55vh;
border-radius: 0.4rem;
overflow: auto;
- scrollbar-gutter: stable;
- scrollbar-width: thin;
- }
-
- #file-editor-container::-webkit-scrollbar {
- width: 8px;
}
.ace_scrollbar-v {
diff --git a/webui/components/modals/history/history.html b/webui/components/modals/history/history.html
index 1e5a6d031..72626f63f 100644
--- a/webui/components/modals/history/history.html
+++ b/webui/components/modals/history/history.html
@@ -27,7 +27,7 @@
<!-- Content (ACE Editor) -->
<template x-if="!$store.history.isLoading && !$store.history.error">
- <div id="history-viewer-container"></div>
+ <div id="history-viewer-container" class="no-scrollbar"></div>
</template>
</div>
@@ -87,10 +87,6 @@
overflow: auto;
}
- #history-viewer-container::-webkit-scrollbar {
- width: 0;
- }
-
/* ACE Editor Scrollbar */
.ace_scrollbar-v {
overflow-y: auto;
diff --git a/webui/components/modals/memory/memory-detail-modal.html b/webui/components/modals/memory/memory-detail-modal.html
index 619459d14..f11de9fc6 100644
--- a/webui/components/modals/memory/memory-detail-modal.html
+++ b/webui/components/modals/memory/memory-detail-modal.html
@@ -86,7 +86,7 @@
</div>
<!-- Metadata Sidebar -->
- <div class="metadata-sidebar">
+ <div class="metadata-sidebar no-scrollbar">
<h4>Metadata</h4>
<!-- Basic Info -->
@@ -333,15 +333,6 @@
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;
color: var(--color-text);
diff --git a/webui/components/modals/process-step-detail/process-step-detail.html b/webui/components/modals/process-step-detail/process-step-detail.html
index 9e25446c9..6bf1accc6 100644
--- a/webui/components/modals/process-step-detail/process-step-detail.html
+++ b/webui/components/modals/process-step-detail/process-step-detail.html
@@ -1,4 +1,4 @@
-<html>
+<html class="step-detail-modal">
<head>
<title>Step Details</title>
@@ -172,6 +172,15 @@
padding: 1rem;
}
+ .modal-inner.step-detail-modal .modal-scroll {
+ scrollbar-width: none;
+ -ms-overflow-style: none;
+ }
+
+ .modal-inner.step-detail-modal .modal-scroll::-webkit-scrollbar {
+ display: none;
+ }
+
.raw-json-section {
height: 100%;
display: flex;
@@ -258,19 +267,6 @@
pointer-events: auto;
}
- .modal-scroll::-webkit-scrollbar {
- scrollbar-width: none;
- -ms-overflow-style: none;
- }
-
- .modal-scroll::-webkit-scrollbar-track {
- background: transparent;
- }
-
- .modal-scroll::-webkit-scrollbar-thumb {
- background: transparent;
- }
-
.modal-body::-webkit-scrollbar,
.result-content::-webkit-scrollbar {
width: 6px;
diff --git a/webui/components/settings/mcp/client/mcp-servers.html b/webui/components/settings/mcp/client/mcp-servers.html
index f13f9139f..2c8ae961d 100644
--- a/webui/components/settings/mcp/client/mcp-servers.html
+++ b/webui/components/settings/mcp/client/mcp-servers.html
@@ -74,6 +74,15 @@
<style>
+ .modal-inner .modal-scroll {
+ scrollbar-width: none;
+ -ms-overflow-style: none;
+ }
+
+ .modal-inner .modal-scroll::-webkit-scrollbar {
+ display: none;
+ }
+
.mcp-servers-loading {
width: 100%;
text-align: center;
diff --git a/webui/components/settings/settings.html b/webui/components/settings/settings.html
index d3185ee52..efd2e842d 100644
--- a/webui/components/settings/settings.html
+++ b/webui/components/settings/settings.html
@@ -29,7 +29,7 @@
<div x-show="$store.settingsStore.settings" class="settings-content">
<!-- Tab Navigation -->
<div class="settings-tabs-container">
- <div class="settings-tabs">
+ <div class="settings-tabs no-scrollbar">
<div class="settings-tab"
:class="{'active': $store.settingsStore.activeTab === 'agent'}"
@click="$store.settingsStore.switchTab('agent')"
diff --git a/webui/components/sidebar/chats/chats-list.html b/webui/components/sidebar/chats/chats-list.html
index fc0675a76..ba071fd00 100644
--- a/webui/components/sidebar/chats/chats-list.html
+++ b/webui/components/sidebar/chats/chats-list.html
@@ -20,7 +20,7 @@
- <ul class="config-list chats-config-list" x-show="$store.chats.contexts.length > 0">
+ <ul class="config-list chats-config-list no-scrollbar" x-show="$store.chats.contexts.length > 0">
<template x-for="context in $store.chats.contexts" :key="context.id">
<li>
<div :class="{'chat-container': true, 'chat-selected': context.id === $store.chats.selected}"
@@ -76,15 +76,6 @@
overflow: scroll;
scroll-behavior: smooth;
max-height: 100%;
- scrollbar-width: none;
- /* Firefox */
- -ms-overflow-style: none;
- /* IE/Edge */
- }
-
- /* Hide scrollbar for Chrome/Safari/Webkit */
- .chats-config-list::-webkit-scrollbar {
- display: none;
}
.chat-container {
diff --git a/webui/components/sidebar/left-sidebar.html b/webui/components/sidebar/left-sidebar.html
index f4d555d1d..e3d6ca8ad 100644
--- a/webui/components/sidebar/left-sidebar.html
+++ b/webui/components/sidebar/left-sidebar.html
@@ -12,7 +12,7 @@
<template x-if="$store.sidebar">
<div id="left-panel" class="panel" x-data :class="{'hidden': !$store.sidebar.isOpen}">
<!--Sidebar upper elements-->
- <div class="left-panel-top">
+ <div class="left-panel-top no-scrollbar">
<!-- Top Section: Header Icons + Quick Actions -->
<x-component path="sidebar/top-section/sidebar-top.html"></x-component>
<!-- Chats List -->
@@ -85,12 +85,6 @@
justify-content: space-between;
margin-top: 3.5rem;
padding: var(--spacing-md) var(--spacing-md) 0 var(--spacing-md);
- scrollbar-width: none;
- -ms-overflow-style: none;
- }
-
- .left-panel-top::-webkit-scrollbar {
- width: 0px;
}
.left-panel-bottom {
diff --git a/webui/components/sidebar/tasks/tasks-list.html b/webui/components/sidebar/tasks/tasks-list.html
index a850e282f..fc00c8000 100644
--- a/webui/components/sidebar/tasks/tasks-list.html
+++ b/webui/components/sidebar/tasks/tasks-list.html
@@ -21,7 +21,7 @@
x-effect="(() => { const c = bootstrap.Collapse.getOrCreateInstance($el, { toggle: false }); $store.sidebar.isSectionOpen('tasks') ? c.show() : c.hide(); })()">
<div class="tasks-list-body">
<div class="tasks-list-container" x-data>
- <ul class="config-list tasks-config-list" x-show="$store.tasks.tasks.length > 0">
+ <ul class="config-list tasks-config-list no-scrollbar" x-show="$store.tasks.tasks.length > 0">
<template x-for="task in $store.tasks.tasks" :key="task.id">
<li>
<div class="task-container" :class="{'task-selected': task.id === $store.tasks.selected}">
@@ -107,16 +107,8 @@
overflow-y: auto;
-webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
scroll-behavior: smooth;
- scrollbar-width: none; /* Firefox */
- -ms-overflow-style: none; /* IE/Edge */
overscroll-behavior: contain; /* avoid scroll chaining */
}
- /* Hide scrollbar for Chrome/Safari/Webkit */
- .tasks-config-list::-webkit-scrollbar {
- display: none;
- width: 0;
- height: 0;
- }
.task-title-line {
display: flex;
diff --git a/webui/css/settings.css b/webui/css/settings.css
index 2f539b550..677778ad3 100644
--- a/webui/css/settings.css
+++ b/webui/css/settings.css
@@ -262,16 +262,10 @@ nav ul li a img {
padding-top: 8px;
overflow-x: auto;
overflow-y: hidden;
- scrollbar-width: none;
- -ms-overflow-style: none;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}
-.settings-tabs::-webkit-scrollbar {
- display: none;
-}
-
.settings-tabs::before,
.settings-tabs::after {
content: '';
diff --git a/webui/index.css b/webui/index.css
index 3339d3e53..a8b48a905 100644
--- a/webui/index.css
+++ b/webui/index.css
@@ -1563,6 +1563,15 @@ nav ul li a img {
display: none !important;
}
+.no-scrollbar {
+ scrollbar-width: none; /* Firefox */
+ -ms-overflow-style: none; /* IE/Edge */
+}
+
+.no-scrollbar::-webkit-scrollbar {
+ display: none; /* Chrome/Safari/Webkit */
+}
+
body * {
scrollbar-width: thin;
scrollbar-color: #555 transparent;