Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

fix: files icons names mismatch

Smaug673975ff95948a26
diff --git a/frontend/app/helpers/resources.ts b/frontend/app/helpers/resources.ts
index 61d04055..bc84b0a0 100644
--- a/frontend/app/helpers/resources.ts
+++ b/frontend/app/helpers/resources.ts
@@ -41,9 +41,9 @@ const resolvePreviewUrl = (node: Node): string => {
const resolveFileIcon = (mimeType: string) => {
if (mimeType.startsWith('image/')) return 'image';
if (mimeType.startsWith('video/')) return 'video';
- if (mimeType.startsWith('audio/')) return 'music';
- if (mimeType.includes('pdf')) return 'pdf';
- return 'file';
+ if (mimeType.startsWith('audio/')) return 'sidebar/music';
+ if (mimeType.includes('pdf')) return 'sidebar/pdf';
+ return 'sidebar/attachment';
};
/** Get human-readable type name for a file based on its MIME type */