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; if (!image) return;
const link = document.createElement('a'); const link = document.createElement('a');
link.href = sanitizeImageUrl(image.url); link.href = image.url;
const timestamp = new Date(image.createdAt).toISOString().replace(/[:.]/g, '-'); const timestamp = new Date(image.createdAt).toISOString().replace(/[:.]/g, '-');
link.download = `imagen-${timestamp}.png`; link.download = `imagen-${timestamp}.png`;
document.body.appendChild(link); document.body.appendChild(link);
+10
View File
@@ -948,12 +948,22 @@ body {
padding: 16px; padding: 16px;
font-size: 0.85rem; font-size: 0.85rem;
color: var(--text-secondary); color: var(--text-secondary);
max-height: 200px;
overflow-y: auto;
} }
.modal-metadata p { .modal-metadata p {
margin-bottom: 8px; margin-bottom: 8px;
} }
.modal-metadata p:first-child {
display: -webkit-box;
-webkit-line-clamp: 4;
line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
}
.modal-metadata p:last-child { .modal-metadata p:last-child {
margin-bottom: 0; margin-bottom: 0;
} }