Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Commit 436e51a

Browse files
committed
style: move styles into CSS
1 parent 42768e7 commit 436e51a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ export default class CssSnippetStore extends Plugin {
5959
// Check if our button is already injected
6060
if (controlElement && !controlElement.querySelector('.my-custom-button')) {
6161
const customButton = document.createElement("button");
62-
customButton.style.marginLeft = "8px";
6362

6463
customButton.onclick = () => {
6564
new CssSnippetStoreModal(this.app, this.snippets, this).open();
@@ -68,7 +67,7 @@ export default class CssSnippetStore extends Plugin {
6867
controlElement.appendChild(customButton);
6968

7069
customButton.textContent = 'Browse';
71-
customButton.className = "mod-cta my-custom-button";
70+
customButton.className = "mod-cta my-custom-button injected-button";
7271
}
7372
}
7473
}

styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,8 @@
5555

5656
.snippet-store-top-container {
5757
margin-bottom: 1rem;
58+
}
59+
60+
.injected-button {
61+
margin-left: 8px;
5862
}

0 commit comments

Comments
 (0)