mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 15:25:51 +01:00
chore(prettier): fix all files
This commit is contained in:
@@ -21,7 +21,7 @@ export default class RightDropdownButtonWidget extends BasicWidget {
|
||||
this.dropdownTpl = dropdownTpl;
|
||||
|
||||
this.settings = {
|
||||
titlePlacement: "right"
|
||||
titlePlacement: "right"
|
||||
};
|
||||
}
|
||||
|
||||
@@ -33,16 +33,17 @@ export default class RightDropdownButtonWidget extends BasicWidget {
|
||||
this.$tooltip = this.$widget.find(".tooltip-trigger").attr("title", this.title);
|
||||
this.tooltip = new bootstrap.Tooltip(this.$tooltip, {
|
||||
placement: this.settings.titlePlacement,
|
||||
fallbackPlacements: [ this.settings.titlePlacement ]
|
||||
fallbackPlacements: [this.settings.titlePlacement]
|
||||
});
|
||||
|
||||
this.$widget.find(".right-dropdown-button")
|
||||
this.$widget
|
||||
.find(".right-dropdown-button")
|
||||
.addClass(this.iconClass)
|
||||
.on("click", () => this.tooltip.hide())
|
||||
.on('mouseenter', () => this.tooltip.show())
|
||||
.on('mouseleave', () => this.tooltip.hide());
|
||||
.on("mouseenter", () => this.tooltip.show())
|
||||
.on("mouseleave", () => this.tooltip.hide());
|
||||
|
||||
this.$widget.on('show.bs.dropdown', async () => {
|
||||
this.$widget.on("show.bs.dropdown", async () => {
|
||||
await this.dropdownShown();
|
||||
|
||||
const rect = this.$dropdownMenu[0].getBoundingClientRect();
|
||||
@@ -58,5 +59,5 @@ export default class RightDropdownButtonWidget extends BasicWidget {
|
||||
}
|
||||
|
||||
// to be overridden
|
||||
async dropdownShow() { }
|
||||
async dropdownShow() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user