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
This commit is contained in:
@@ -45,7 +45,7 @@ function buildResourceIcon(item, resourceType) {
|
|||||||
|
|
||||||
const img = document.createElement('img');
|
const img = document.createElement('img');
|
||||||
img.className = 'file-thumb';
|
img.className = 'file-thumb';
|
||||||
img.src = `/api/files/${file.id}/thumbnail/icon`;
|
img.src = `/api/files/${file.id}/thumbnail/preview`;
|
||||||
img.loading = 'lazy';
|
img.loading = 'lazy';
|
||||||
img.alt = '';
|
img.alt = '';
|
||||||
img.addEventListener('error', () => {
|
img.addEventListener('error', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user