add img preview + fix navbar

This commit is contained in:
Matthieu
2025-10-16 10:26:36 +02:00
parent 8eada12438
commit 4ccc19505f
10 changed files with 479 additions and 344 deletions

View File

@@ -17,6 +17,8 @@ export const getPreviewType = (document) => {
export const canPreviewDocument = (document = {}) => !!getPreviewType(document)
export const isImageDocument = (document = {}) => getPreviewType(document) === 'image'
export const describeDocument = (document) => {
if (!document) { return '' }
const name = document.filename || document.name || ''