Merge pull request #1 from kirillchikalin/master

Change the style of the Render button to match Logseq's CSS theme
This commit is contained in:
CofCool 2025-02-25 17:33:20 +08:00 committed by GitHub
commit 8a62d2863f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 13 deletions

View File

@ -50,18 +50,8 @@ const main = () => {
});
logseq.provideStyle(`
.renderBtn {
border: 1px solid black;
border-radius: 8px;
padding: 3px;
font-size: 80%;
background-color: white;
color: black;
}
.renderBtn:hover {
background-color: black;
color: white;
.render-btn {
border: 1px dashed var(--ls-border-color);
}
`);
@ -69,7 +59,7 @@ const main = () => {
key: `${plantumlId}`,
slot,
reset: true,
template: `<button data-on-click="show" class="renderBtn">Render</button>`,
template: `<button data-on-click="show" class="button render-btn">Render</button>`,
});
});
};