fix(launcher): tooltip position for bookmark buttons

This commit is contained in:
Elian Doran 2024-12-01 10:19:14 +02:00
parent f8f61c1c3e
commit a883744237
No known key found for this signature in database

View File

@ -8,6 +8,7 @@ export default class BookmarkButtons extends FlexContainer {
super(isHorizontalLayout ? "row" : "column");
this.contentSized();
this.settings = {};
}
async refresh() {
@ -24,6 +25,10 @@ export default class BookmarkButtons extends FlexContainer {
? new BookmarkFolderWidget(note)
: new OpenNoteButtonWidget(note)
.class("launcher-button");
if (!buttonWidget.settings) {
buttonWidget = {};
}
buttonWidget.settings.titlePlacement = this.settings.titlePlacement;
this.child(buttonWidget);