diff --git a/frontend/src/repositories/Document.ts b/frontend/src/repositories/Document.ts index 2b311d8..5c8567a 100644 --- a/frontend/src/repositories/Document.ts +++ b/frontend/src/repositories/Document.ts @@ -44,7 +44,10 @@ export class Doc { if (this.img) return true const ext = this.name.split('.').pop()?.toLowerCase() // Not a comprehensive list, but good enough for now - return ['mp4', 'mkv', 'webm', 'ogg', 'mp3', 'flac', 'aac', 'pdf'].includes(ext || '') + return [ + 'mp4', 'mkv', 'webm', 'ogg', 'mp3', 'flac', 'aac', 'pdf', + 'avif', 'heic', 'heif', 'jpg', 'jpeg', 'png' + ].includes(ext || '') } get previewurl(): string { return this.url.replace(/^\/files/, '/preview') diff --git a/frontend/src/views/ExplorerView.vue b/frontend/src/views/ExplorerView.vue index 6c78bd2..ef93635 100644 --- a/frontend/src/views/ExplorerView.vue +++ b/frontend/src/views/ExplorerView.vue @@ -21,7 +21,7 @@