mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 11:02:27 +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");
|
super(isHorizontalLayout ? "row" : "column");
|
||||||
|
|
||||||
this.contentSized();
|
this.contentSized();
|
||||||
|
this.settings = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
async refresh() {
|
async refresh() {
|
||||||
@ -24,6 +25,10 @@ export default class BookmarkButtons extends FlexContainer {
|
|||||||
? new BookmarkFolderWidget(note)
|
? new BookmarkFolderWidget(note)
|
||||||
: new OpenNoteButtonWidget(note)
|
: new OpenNoteButtonWidget(note)
|
||||||
.class("launcher-button");
|
.class("launcher-button");
|
||||||
|
if (!buttonWidget.settings) {
|
||||||
|
buttonWidget = {};
|
||||||
|
}
|
||||||
|
buttonWidget.settings.titlePlacement = this.settings.titlePlacement;
|
||||||
|
|
||||||
this.child(buttonWidget);
|
this.child(buttonWidget);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user