Skip to content

Commit

Permalink
fixed styling
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaKryzh committed Oct 15, 2024
1 parent 9de5da5 commit b0d8e6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,9 @@ class StatusBar {

private setIsVisible = (isVisible: boolean) => {
if (!this.plugin.settings.snapshot) {
this.element.style.display = "none";
this.element.toggleClass("hidden", false);
} else {
this.element.style.display = isVisible ? "inline-flex" : "none";
this.element.toggleClass("hidden", !isVisible);
}
};
}
Expand Down
4 changes: 4 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
flex-direction: column;
gap: var(--size-2-2);
}

.hidden {
display: none;
}

0 comments on commit b0d8e6e

Please sign in to comment.