mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
fix(client): alignment of sync tooltip on horizontal layout
This commit is contained in:
parent
f96a3ce32e
commit
2babc680a8
@ -75,6 +75,9 @@ export default class SyncStatusWidget extends BasicWidget {
|
|||||||
|
|
||||||
this.syncState = 'unknown';
|
this.syncState = 'unknown';
|
||||||
this.allChangesPushed = false;
|
this.allChangesPushed = false;
|
||||||
|
this.settings = {
|
||||||
|
titlePlacement: "right"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
@ -93,9 +96,11 @@ export default class SyncStatusWidget extends BasicWidget {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("Align ", this.settings.titlePlacement);
|
||||||
bootstrap.Tooltip.getOrCreateInstance(this.$widget.find(`.sync-status-${className}`), {
|
bootstrap.Tooltip.getOrCreateInstance(this.$widget.find(`.sync-status-${className}`), {
|
||||||
html: true,
|
html: true,
|
||||||
placement: 'right',
|
placement: this.settings.titlePlacement,
|
||||||
|
fallbackPlacements: [ this.settings.titlePlacement ]
|
||||||
});
|
});
|
||||||
|
|
||||||
this.$widget.show();
|
this.$widget.show();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user