Skip to content

Agent Zero AI framework

fix user massage wrapping, attachments design

frdelaf99187053e5
diff --git a/webui/css/messages.css b/webui/css/messages.css
index 313370584..a79e488a6 100644
--- a/webui/css/messages.css
+++ b/webui/css/messages.css
@@ -71,10 +71,10 @@
}
-.message-user {
+.message.message-user {
text-align: end;
margin-bottom: var(--spacing-md);
-
+ width: 100%;
}
.message-user .message-text {
diff --git a/webui/index.css b/webui/index.css
index b9a0b445d..d1609538c 100644
--- a/webui/index.css
+++ b/webui/index.css
@@ -506,10 +506,9 @@ h4 {
}
.preview-item.file-preview .file-icon {
- width: 48px;
- height: 48px;
- margin-bottom: 8px;
- opacity: 0.8;
+ width: 2.5rem;
+ height: 2.5rem;
+ margin-bottom: 0.1rem;
}
.preview-item.file-preview .file-info {
@@ -667,8 +666,8 @@ h4 {
.attachment-item {
position: relative;
- width: 120px;
- height: 120px;
+ width: 6rem;
+ height: 6rem;
/* background-color: var(--color-background); */
border: 1px solid var(--color-border);
display: flex;
@@ -712,14 +711,12 @@ h4 {
padding: 12px;
text-align: center;
}
-
+
.attachment-item.file-type .file-icon {
- width: 48px;
- height: 48px;
- margin-bottom: 8px;
- opacity: 0.8;
+ width: 50%;
+ height: 50%;
}
-
+
.attachment-item.file-type .file-title {
font-size: 0.75rem;
color: var(--color-text);
@@ -732,7 +729,7 @@ h4 {
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
text-align: center;
- margin-bottom: 4px;
+ margin-top: auto;
}
/* Chat-history attachments overrides (flat styling) */
@@ -811,7 +808,7 @@ h4 {
padding: var(--spacing-xs);
}
-.preview-item {
+/* .preview-item {
position: relative;
background: var(--color-secondary);
border-radius: 8px;
@@ -821,13 +818,13 @@ h4 {
align-items: center;
gap: 8px;
transition: background-color 0.2s ease;
-}
+} */
-.preview-item.image-preview img {
+/* .preview-item.image-preview img {
max-height: 100px;
object-fit: cover;
border-radius: 4px;
-}
+} */
.image-wrapper {
width: 100%;