mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 18:39:22 +08:00
chore(touchbar): reduce centering
This commit is contained in:
parent
ef423f1a1f
commit
342aff8209
@ -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"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user