mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +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.allChangesPushed = false;
|
||||
this.settings = {
|
||||
titlePlacement: "right"
|
||||
};
|
||||
}
|
||||
|
||||
doRender() {
|
||||
@ -93,9 +96,11 @@ export default class SyncStatusWidget extends BasicWidget {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("Align ", this.settings.titlePlacement);
|
||||
bootstrap.Tooltip.getOrCreateInstance(this.$widget.find(`.sync-status-${className}`), {
|
||||
html: true,
|
||||
placement: 'right',
|
||||
placement: this.settings.titlePlacement,
|
||||
fallbackPlacements: [ this.settings.titlePlacement ]
|
||||
});
|
||||
|
||||
this.$widget.show();
|
||||
|
Loading…
x
Reference in New Issue
Block a user