mirror of
https://github.com/zadam/trilium.git
synced 2025-12-11 21:26:13 +08:00
feat(ribbon): prototype sticky ribbon
This commit is contained in:
parent
fcf51ec6da
commit
05679f7a8d
2 changed files with 7 additions and 10 deletions
|
|
@ -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 />)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue