mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 02:02:29 +08:00
fix(launcher): tooltip position for bookmark buttons
This commit is contained in:
parent
f8f61c1c3e
commit
a883744237
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user