Change a class name

This commit is contained in:
oobabooga 2025-06-05 10:49:02 -07:00
parent 27affa9db7
commit 7366ff5dfa
2 changed files with 2 additions and 2 deletions

View file

@ -1555,7 +1555,7 @@ strong {
flex-direction: column; flex-direction: column;
} }
.attachment-image { .image-preview {
border-radius: 16px; border-radius: 16px;
margin-bottom: 5px; margin-bottom: 5px;
object-fit: cover; object-fit: cover;

View file

@ -377,7 +377,7 @@ def format_message_attachments(history, role, index):
file_path = attachment.get("file_path", "") file_path = attachment.get("file_path", "")
attachments_html += ( attachments_html += (
f'<div class="attachment-box image-attachment">' f'<div class="attachment-box image-attachment">'
f'<img src="file/{file_path}" alt="{name}" class="attachment-image" />' f'<img src="file/{file_path}" alt="{name}" class="image-preview" />'
f'<div class="attachment-name">{name}</div>' f'<div class="attachment-name">{name}</div>'
f'</div>' f'</div>'
) )