Skip to content

Build your personal knowledge base with Trilium Notes

feat(touch_bar): reduce items moving around

Elian Doran267659638419
diff --git a/src/public/app/widgets/touch_bar.ts b/src/public/app/widgets/touch_bar.ts
index e9a7c3d4e0..be73ab85b1 100644
--- a/src/public/app/widgets/touch_bar.ts
+++ b/src/public/app/widgets/touch_bar.ts
@@ -50,14 +50,14 @@ export default class TouchBarWidget extends Component {
#buildTouchBar() {
const { TouchBar } = this.remote;
- const { TouchBarButton, TouchBarSpacer, TouchBarGroup } = this.remote.TouchBar;
+ const { TouchBarButton, TouchBarSpacer, TouchBarGroup, TouchBarOtherItemsProxy } = this.remote.TouchBar;
const items = [
new TouchBarButton({
icon: this.#buildIcon("NSTouchBarComposeTemplate"),
click: () => this.triggerCommand("createNoteIntoInbox")
}),
- new TouchBarSpacer({ size: "flexible" }),
+ new TouchBarSpacer({ size: "large" }),
new TouchBarGroup({
items: new TouchBar({
items: [
@@ -76,6 +76,7 @@ export default class TouchBarWidget extends Component {
]
})
}),
+ new TouchBarOtherItemsProxy(),
new TouchBarSpacer({ size: "flexible" }),
new TouchBarButton({
icon: this.#buildIcon("NSTouchBarAddDetailTemplate"),