fix: update image download link to use the original URL and enhance modal metadata styling

This commit is contained in:
Yusuf İpek
2026-02-06 10:21:44 +03:00
parent 6f8d1158dd
commit 95c085d560
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -972,7 +972,7 @@ function downloadImageByIndex(index) {
if (!image) return;
const link = document.createElement('a');
link.href = sanitizeImageUrl(image.url);
link.href = image.url;
const timestamp = new Date(image.createdAt).toISOString().replace(/[:.]/g, '-');
link.download = `imagen-${timestamp}.png`;
document.body.appendChild(link);