Skip to content

Agent Zero AI framework

Mobile and UX update

Alessandroe6ac772a2ed6
diff --git a/webui/index.css b/webui/index.css
index 800709652..b2d2c998a 100644
--- a/webui/index.css
+++ b/webui/index.css
@@ -588,12 +588,13 @@ pre {
font-optical-sizing: auto;
font-size: 0.875rem;
max-height: 7rem;
- min-height: 1.9rem;
+ min-height: 1.5rem;
padding: var(--spacing-xs) var(--spacing-sm);
overflow-y: auto;
scroll-behavior: smooth;
resize: none;
- /* scrollbar padding */
+ align-content: space-around;
+ /* scrollbar padding */
background-clip: border-box;
border: 6px solid transparent;
transition: all 0.3s ease;
@@ -1042,6 +1043,8 @@ input:checked + .slider:before {
#chat-input {
min-height: 4.2rem;
+ padding-top: 0.7rem;
+ align-content:baseline;
}
}
diff --git a/webui/settings.css b/webui/settings.css
index 22802e5e6..201d03f7a 100644
--- a/webui/settings.css
+++ b/webui/settings.css
@@ -8,7 +8,7 @@
display: flex;
align-items: center;
justify-content: center;
- z-index: 1001;
+ z-index: 2001;
}
.modal-container {
@@ -28,7 +28,7 @@
}
.modal-content {
- padding: 2rem;
+ padding: 1.5rem;
overflow-y: auto;
flex-grow: 1;
background-clip: border-box;
@@ -59,7 +59,7 @@
.modal-footer {
padding: 1.5rem 2rem;
- border-top: 1px solid #eee;
+ border-top: 1px solid var(--color-border);
display: flex;
justify-content: flex-end;
gap: 1rem;
@@ -69,7 +69,7 @@
.section {
margin-bottom: 2rem;
padding: 1rem;
- border: 1px solid #eee;
+ border: 1px solid var(--color-border);
border-radius: 0.5rem;
}
@@ -85,10 +85,9 @@
}
.field {
- margin-bottom: 1.5rem;
display: grid;
- grid-template-columns: 200px 1fr;
- gap: 1rem;
+ margin-block-start: 1rem;
+ grid-template-columns: 250px 1fr;
align-items: center;
}
@@ -109,12 +108,13 @@
color: #666;
font-size: 0.875rem;
margin-top: 0.25rem;
+ margin-bottom: 0.5rem;
}
.field-control {
+ width: 100%;
display: flex;
align-items: center;
- gap: 0.5rem;
}
input[type="text"] {
@@ -131,7 +131,6 @@ textarea {
padding: 0.5rem;
border: 1px solid #ddd;
border-radius: 0.25rem;
- margin-top: 1rem;
font-family: Roboto Mono;
scroll-behavior: smooth;
resize: none;
@@ -211,15 +210,23 @@ input[type="range"] {
}
.btn-ok {
- background: #2196F3;
+ background: #3270e2;
color: white;
}
+.btn-ok:hover{
+ background: #274170;
+}
+
.btn-cancel {
background: #ddd;
color: #333;
}
+.btn-cancel:hover {
+ background: #222
+}
+
.btn-field {
background: #2196F3;
color: white;
@@ -270,8 +277,8 @@ nav ul li a:hover {
@media (max-width: 768px) {
.modal-header {
- padding: 1.5rem 2rem;
- border-bottom: 1px solid #eee;
+ padding: 0.7rem 2rem;
+ border-bottom: 1px solid var(--color-border);
}
.modal-content {
@@ -291,9 +298,9 @@ nav ul li a:hover {
}
.section {
- margin-bottom: 2rem;
+ margin-bottom: 1.5rem;
padding: 1rem;
- border: 1px solid #eee;
+ border: 1px solid var(--color-border);
border-radius: 0.5rem;
}
@@ -301,7 +308,7 @@ nav ul li a:hover {
width: 100%;
}
.field-description {
- padding-bottom: var(--spacing-xs);
+ padding-bottom: var(--spacing-sm);
}
.field {
padding-top: var(--spacing-xs);
@@ -309,8 +316,4 @@ nav ul li a:hover {
display: block;
align-items: center;
}
- .select {
- margin-top: 100px !important;
- padding-bottom: 1rem;
- }
}
\ No newline at end of file