Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kometenstaub committed Feb 25, 2023
1 parent defd43b commit 4ac1234
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
14 changes: 10 additions & 4 deletions src/git_diff_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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();
Expand All @@ -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();
Expand Down
12 changes: 6 additions & 6 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 4ac1234

Please sign in to comment.