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): prototype sticky ribbon
Elian Doran05679f7a8db8
diff --git a/apps/client/src/layouts/desktop_layout.tsx b/apps/client/src/layouts/desktop_layout.tsxindex 0347acf1e4..7464844dc2 100644--- a/apps/client/src/layouts/desktop_layout.tsx+++ b/apps/client/src/layouts/desktop_layout.tsx@@ -130,7 +130,6 @@ export default class DesktopLayout {.child(<ClosePaneButton />).child(<CreatePaneButton />))- .child(<Ribbon />).child(new WatchedFileUpdateStatusWidget()).child(<FloatingButtons items={DESKTOP_FLOATING_BUTTONS} />).child(@@ -150,6 +149,7 @@ export default class DesktopLayout {.child(<ReadOnlyNoteInfoBar />).child(<SharedInfo />))+ .child(<Ribbon />).child(<PromotedAttributes />).child(<SqlTableSchemas />).child(<NoteDetail />)diff --git a/apps/client/src/stylesheets/theme-next/ribbon.css b/apps/client/src/stylesheets/theme-next/ribbon.cssindex 3101339be4..a518e05dc2 100644--- a/apps/client/src/stylesheets/theme-next/ribbon.css+++ b/apps/client/src/stylesheets/theme-next/ribbon.css@@ -183,13 +183,10 @@ ul.editability-dropdown li.dropdown-item > div {* Styling as a floating toolbar*/.ribbon-container {- background: var(--card-background-color);- box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);- margin: 10px;- border-radius: 6px;- padding: 5px 0;-- .ribbon-body {- border-bottom: 0;- }+ position: sticky;+ top: 0;+ left: 0;+ right: 0;+ background: var(--main-background-color);+ z-index: 997;}