mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 03:53:37 -06:00
feat(ribbon): hide when in options
This commit is contained in:
parent
3b8dabc9d2
commit
f8447d923e
@ -73,10 +73,11 @@ export default function Ribbon() {
|
||||
}
|
||||
}, [ computedTabs, activeTabIndex ]));
|
||||
|
||||
const shouldShowRibbon = (noteContext?.viewScope?.viewMode === "default" && !noteContext.noteId?.startsWith("_options"));
|
||||
return (
|
||||
<div
|
||||
ref={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">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user