We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a44b3d commit 9ccc47bCopy full SHA for 9ccc47b
1 file changed
components/modals/BlobModal.vue
@@ -85,7 +85,10 @@ watch(
85
await getBlobMetadata()
86
87
/** auto preview for small images */
88
- if (["image/png", "image/jpeg"].includes(blob.value.content_type) && cacheStore.selectedBlob.size < 100_000) {
+ if (
89
+ (["image/png", "image/jpeg"].includes(blob.value.content_type) || blob.value.content_type.startsWith("text/plain")) &&
90
+ cacheStore.selectedBlob.size < 100_000
91
+ ) {
92
handlePreviewContent()
93
}
94
} else {
0 commit comments