Skip to content

Commit

Permalink
fix: use more specific css class
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Dec 9, 2021
1 parent 53cc4bf commit 471b257
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/modals/discardModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class DiscardModal extends Modal {
titleEl.setText(`${this.deletion ? "Delete" : "Discard"} this file?`);
contentEl.createEl("h4").setText(`Do you really want to ${this.deletion ? "delete" : "discard the changes of"} "${this.filename}"`);
const div = contentEl.createDiv();
div.addClass("center");
div.addClass("obsidian-git-center");

// div.setAttr("margin-left", "auto");
// div.setAttr("margin-right", "auto");
Expand Down
2 changes: 1 addition & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
transform-origin: 50% 50%;
display: inline-block;
}
.center{
.obsidian-git-center{
margin: auto;
width: 50%;
}
Expand Down

0 comments on commit 471b257

Please sign in to comment.