Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(ribbon): hide when in options
Elian Doranf8447d923ead
diff --git a/apps/client/src/widgets/ribbon/Ribbon.tsx b/apps/client/src/widgets/ribbon/Ribbon.tsxindex 55ade760ce..ee3fd3fcf6 100644--- a/apps/client/src/widgets/ribbon/Ribbon.tsx+++ b/apps/client/src/widgets/ribbon/Ribbon.tsx@@ -73,10 +73,11 @@ export default function Ribbon() {}}, [ computedTabs, activeTabIndex ]));+ const shouldShowRibbon = (noteContext?.viewScope?.viewMode === "default" && !noteContext.noteId?.startsWith("_options"));return (<divref={containerRef}- className={clsx("ribbon-container", noteContext?.viewScope?.viewMode !== "default" && "hidden-ext")}+ className={clsx("ribbon-container", !shouldShowRibbon && "hidden-ext")}style={{ contain: "none" }}><div className="ribbon-top-row">