diff --git a/src/git_diff_view.ts b/src/git_diff_view.ts index 0818782..b4ff5ed 100644 --- a/src/git_diff_view.ts +++ b/src/git_diff_view.ts @@ -98,8 +98,8 @@ export default class GitDiffView extends DiffView { }); if (version.fileName !== this.file.name) { const changedName = infoDiv.createDiv({ - text: "Old name: " + version.fileName.slice(0, -3), - }) + text: 'Old name: ' + version.fileName.slice(0, -3), + }); } const date = infoDiv.createDiv({ text: version.date.split('T')[0], @@ -146,7 +146,10 @@ export default class GitDiffView extends DiffView { } else { this.leftContent = await this.app.plugins.plugins[ 'obsidian-git' - ].gitManager.show(clickedEl.v.hash, clickedEl.v.fileName); + ].gitManager.show( + clickedEl.v.hash, + clickedEl.v.fileName + ); } this.syncHistoryContentContainer.innerHTML = await this.getDiff(); @@ -163,7 +166,10 @@ export default class GitDiffView extends DiffView { } else { this.rightContent = await this.app.plugins.plugins[ 'obsidian-git' - ].gitManager.show(clickedEl.v.hash, clickedEl.v.fileName); + ].gitManager.show( + clickedEl.v.hash, + clickedEl.v.fileName + ); } this.syncHistoryContentContainer.innerHTML = await this.getDiff(); diff --git a/src/styles.scss b/src/styles.scss index 064d3a6..dffebcf 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -446,9 +446,9 @@ mode from @SlRvb, which fall under the same license (MIT license, @kometenstaub margin-right: 0.5em; margin-top: 0.5em; - + .sync-history-list.sync-history-list { - margin-top: 0em; - } + + .sync-history-list.sync-history-list { + margin-top: 0em; + } } .sync-history-list { @@ -472,9 +472,9 @@ mode from @SlRvb, which fall under the same license (MIT license, @kometenstaub .modal.mod-sync-history.diff { min-width: 95vw; - .sync-history-list-item.is-active:hover { - background-color: var(--interactive-accent-hover); - } + .sync-history-list-item.is-active:hover { + background-color: var(--interactive-accent-hover); + } } @media only screen and (min-width: 1200px) { .modal.mod-sync-history.diff {