From bb3ac277f4e5d32999c7b9cb02d668a7f39b087f Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 22 Sep 2025 18:27:13 +0300 Subject: [PATCH] feat(ribbon): hide file details when opening PDF (closes #6873) --- apps/client/src/widgets/ribbon/Ribbon.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/widgets/ribbon/Ribbon.tsx b/apps/client/src/widgets/ribbon/Ribbon.tsx index 68490a18d..ff908f00f 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([ content: FilePropertiesTab, show: ({ note }) => note?.type === "file", toggleCommand: "toggleRibbonTabFileProperties", - activate: true + activate: ({ note }) => note?.mime !== "application/pdf" }, { title: t("image_properties.title"),