Skip to content

Build your personal knowledge base with Trilium Notes

feat(ribbon): hide file details when opening PDF (closes #6873)

Elian Doranbb3ac277f4e5
diff --git a/apps/client/src/widgets/ribbon/Ribbon.tsx b/apps/client/src/widgets/ribbon/Ribbon.tsx
index 68490a18dd..ff908f00fc 100644
--- a/apps/client/src/widgets/ribbon/Ribbon.tsx
+++ b/apps/client/src/widgets/ribbon/Ribbon.tsx
@@ -96,7 +96,7 @@ const TAB_CONFIGURATION = numberObjectsInPlace<TabConfiguration>([
content: FilePropertiesTab,
show: ({ note }) => note?.type === "file",
toggleCommand: "toggleRibbonTabFileProperties",
- activate: true
+ activate: ({ note }) => note?.mime !== "application/pdf"
},
{
title: t("image_properties.title"),