Don't show broken media previews during uploads, instead show a spinner indicating completion.

This commit is contained in:
2026-04-23 17:40:03 +00:00
parent ded7ce65bc
commit 3da2f6e6c3
2 changed files with 32 additions and 2 deletions
+3
View File
@@ -59,6 +59,9 @@ export class Doc {
if (this.dir) return false
return ['jpg', 'jpeg', 'png', 'gif', 'webp', 'avif', 'heic', 'heif', 'svg'].includes(this.ext)
}
get complete(): boolean {
return !this.ghost && (this.dir || this.size <= this.allocated)
}
get previewable(): boolean {
// Folders cannot be previewable
if (this.dir) return false