From b85088049a1997a6c263adb20e1e0bd30122ed6f Mon Sep 17 00:00:00 2001 From: Edouard Vanbelle Date: Mon, 15 Jun 2026 17:16:57 +0200 Subject: [PATCH] feat(front): use preview image to better fit new icon size grid view is now displaying preview in 200px wide icons are 150 px wide, this create a blur effec preview is now more appropriated the true solution would be to change icon size into 200px wide --- static/js/components/resourceIcon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/components/resourceIcon.js b/static/js/components/resourceIcon.js index 6f50d790..45e2034c 100644 --- a/static/js/components/resourceIcon.js +++ b/static/js/components/resourceIcon.js @@ -45,7 +45,7 @@ function buildResourceIcon(item, resourceType) { const img = document.createElement('img'); img.className = 'file-thumb'; - img.src = `/api/files/${file.id}/thumbnail/icon`; + img.src = `/api/files/${file.id}/thumbnail/preview`; img.loading = 'lazy'; img.alt = ''; img.addEventListener('error', () => {