diff --git a/src/modules/features/ModuleLog.ts b/src/modules/features/ModuleLog.ts index 81118d2..062549a 100644 --- a/src/modules/features/ModuleLog.ts +++ b/src/modules/features/ModuleLog.ts @@ -262,7 +262,7 @@ export class ModuleLog extends AbstractObsidianModule { this.statusDiv.remove(); // this.statusDiv.pa(); const container = mdv.view.containerEl; - container.insertBefore(this.statusDiv, container.lastChild); + container.appendChild(this.statusDiv); } } @@ -466,12 +466,14 @@ ${stringifyYaml(info)} this.observeForLogs(); - this.statusDiv = this.app.workspace.containerEl.createDiv({ cls: "livesync-status" }); - this.statusLine = this.statusDiv.createDiv({ cls: "livesync-status-statusline" }); - this.messageArea = this.statusDiv.createDiv({ cls: "livesync-status-messagearea" }); - this.logMessage = this.statusDiv.createDiv({ cls: "livesync-status-logmessage" }); - this.logHistory = this.statusDiv.createDiv({ cls: "livesync-status-loghistory" }); - this.statusDiv.style.display = this.settings?.showStatusOnEditor ? "" : "none"; + if (this.settings.showStatusOnEditor) { + this.statusDiv = this.app.workspace.containerEl.createDiv({ cls: "livesync-status" }); + this.statusLine = this.statusDiv.createDiv({ cls: "livesync-status-statusline" }); + this.messageArea = this.statusDiv.createDiv({ cls: "livesync-status-messagearea" }); + this.logMessage = this.statusDiv.createDiv({ cls: "livesync-status-logmessage" }); + this.logHistory = this.statusDiv.createDiv({ cls: "livesync-status-loghistory" }); + this.statusDiv.style.display = this.settings?.showStatusOnEditor ? "" : "none"; + } eventHub.onEvent(EVENT_LAYOUT_READY, () => this.adjustStatusDivPosition()); if (this.settings?.showStatusOnStatusbar) { this.statusBar = this.services.API.addStatusBarItem(); diff --git a/updates.md b/updates.md index 123916b..5d35cb2 100644 --- a/updates.md +++ b/updates.md @@ -3,6 +3,13 @@ Since 19th July, 2025 (beta1 in 0.25.0-beta1, 13th July, 2025) The head note of 0.25 is now in [updates_old.md](https://github.com/vrtmrz/obsidian-livesync/blob/main/updates_old.md). Because 0.25 got a lot of updates, thankfully, compatibility is kept and we do not need breaking changes! In other words, when get enough stabled. The next version will be v1.0.0. Even though it my hope. +## Unreleased + +1st June, 2026 (draft) + +### Fixed +- No longer the status element breaks other plugins' interaction (#930). + ## 0.25.70-patch1 1st June, 2026