feat(desktop): Image Preview support for Image Attachments (#7841)

This commit is contained in:
Daniel Polito
2026-01-11 17:12:52 -03:00
committed by GitHub
parent b81eca4ebc
commit 025ed04da0
3 changed files with 5 additions and 6 deletions

View File

@@ -327,7 +327,6 @@ export function UserMessageDisplay(props: { message: UserMessage; parts: PartTyp
<div
data-slot="user-message-attachment"
data-type={file.mime.startsWith("image/") ? "image" : "file"}
data-clickable={file.mime.startsWith("image/") && !!file.url}
onClick={() => {
if (file.mime.startsWith("image/") && file.url) {
openImagePreview(file.url, file.filename)