fix: don't show filename as alt text

This commit is contained in:
ShittyKopper 2023-11-27 23:55:43 +03:00
parent 2f5c51c1ca
commit 62a5793e71
4 changed files with 8 additions and 8 deletions

View file

@ -156,8 +156,8 @@ onMounted(() => {
[itemData.w, itemData.h] = [itemData.h, itemData.w];
}
itemData.msrc = file.thumbnailUrl;
itemData.alt = file.comment ?? file.name;
itemData.comment = file.comment ?? file.name;
itemData.alt = file.comment ?? undefined;
itemData.comment = file.comment;
itemData.thumbCropped = true;
});