better preview of files

This commit is contained in:
2025-06-01 12:38:51 +02:00
parent aeefd17b10
commit ea118a37c5
8 changed files with 140 additions and 23 deletions

View File

@@ -66,7 +66,7 @@ export class FilePreview {
}
async previewFile(file) {
const contentDiv = document.getElementById(`${this.options.containerId}Content`);
const contentDiv = document.getElementById('filePreviewContent');
const extension = file.name.split('.').pop().toLowerCase();
// Show loading spinner