Skip to content

Build your personal knowledge base with Trilium Notes

feat(layout): new icon for note actions & fix padding

Elian Dorana0f0da64b4ec
diff --git a/apps/client/src/layouts/desktop_layout.tsx b/apps/client/src/layouts/desktop_layout.tsx
index 1d0d7b96f4..75d6ae18b7 100644
--- a/apps/client/src/layouts/desktop_layout.tsx
+++ b/apps/client/src/layouts/desktop_layout.tsx
@@ -136,10 +136,6 @@ export default class DesktopLayout {
.child(
new FlexContainer("row")
.class("breadcrumb-row")
- .css("height", "30px")
- .css("min-height", "30px")
- .css("align-items", "center")
- .css("padding", "10px")
.cssBlock(".breadcrumb-row > * { margin: 5px; }")
.child(<Breadcrumb />)
.child(<SpacerWidget baseSize={0} growthFactor={1} />)
diff --git a/apps/client/src/widgets/Breadcrumb.css b/apps/client/src/widgets/Breadcrumb.css
index 9739f33db1..5f3bc886bb 100644
--- a/apps/client/src/widgets/Breadcrumb.css
+++ b/apps/client/src/widgets/Breadcrumb.css
@@ -1,5 +1,13 @@
.breadcrumb-row {
position: relative;
+ height: 30px;
+ min-height: 30px;
+ align-items: center;
+ padding: 10px;
+}
+
+body.experimental-feature-new-layout .breadcrumb-row {
+ padding-inline-end: 0;
}
.component.breadcrumb {
diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsx
index f5a69df2ac..6adaf7f613 100644
--- a/apps/client/src/widgets/ribbon/NoteActions.tsx
+++ b/apps/client/src/widgets/ribbon/NoteActions.tsx
@@ -60,7 +60,7 @@ function NoteContextMenu({ note, noteContext }: { note: FNote, noteContext?: Not
return (
<Dropdown
- buttonClassName="bx bx-dots-vertical-rounded"
+ buttonClassName={ isNewLayout ? "bx bx-dots-horizontal-rounded" : "bx bx-dots-vertical-rounded" }
className="note-actions"
hideToggleArrow
noSelectButtonStyle
diff --git a/apps/client/src/widgets/ribbon/style.css b/apps/client/src/widgets/ribbon/style.css
index 5fafb327ac..b1813d65fe 100644
--- a/apps/client/src/widgets/ribbon/style.css
+++ b/apps/client/src/widgets/ribbon/style.css
@@ -432,6 +432,7 @@ body.experimental-feature-new-layout {
.ribbon-button-container {
border-bottom: 0 !important;
+ margin: 0;
}
}
/* #endregion */