chore(touchbar): reduce centering

This commit is contained in:
Elian Doran 2025-04-13 22:16:05 +03:00
parent ef423f1a1f
commit 342aff8209
No known key found for this signature in database

View File

@ -87,11 +87,9 @@ export default class EditableCodeTypeWidget extends AbstractCodeTypeWidget {
} }
buildTouchBarCommand({ TouchBar, buildIcon }: CommandListenerData<"buildTouchBar">) { buildTouchBarCommand({ TouchBar, buildIcon }: CommandListenerData<"buildTouchBar">) {
const items: TouchBarItem[] = [ const items: TouchBarItem[] = [];
new TouchBar.TouchBarSpacer({ size: "flexible" }),
];
const note = this.note; const note = this.note;
if (note?.mime.startsWith("application/javascript") || note?.mime === "text/x-sqlite;schema=trilium") { if (note?.mime.startsWith("application/javascript") || note?.mime === "text/x-sqlite;schema=trilium") {
items.push(new TouchBar.TouchBarButton({ items.push(new TouchBar.TouchBarButton({
icon: buildIcon("NSImageNameTouchBarPlayTemplate"), icon: buildIcon("NSImageNameTouchBarPlayTemplate"),