mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 10:15:52 +01:00
fix(client): tooltip position for launcher on horizontal layout
This commit is contained in:
@@ -23,7 +23,10 @@ export default class AbstractButtonWidget extends NoteContextAwareWidget {
|
||||
doRender() {
|
||||
this.$widget = $(TPL);
|
||||
this.tooltip = new bootstrap.Tooltip(this.$widget, {
|
||||
html: true, title: () => this.getTitle(), trigger: 'hover'
|
||||
html: true,
|
||||
title: () => this.getTitle(),
|
||||
trigger: 'hover',
|
||||
placement: this.settings.titlePlacement
|
||||
})
|
||||
|
||||
if (this.settings.onContextMenu) {
|
||||
@@ -36,8 +39,6 @@ export default class AbstractButtonWidget extends NoteContextAwareWidget {
|
||||
});
|
||||
}
|
||||
|
||||
this.$widget.attr("data-placement", this.settings.titlePlacement);
|
||||
|
||||
super.doRender();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user