Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
style/code blocks/copy button: tweak appearance
Adorian Doran75ec3934af1b
diff --git a/apps/client/src/services/syntax_highlight.ts b/apps/client/src/services/syntax_highlight.tsindex 48969a9067..bfe887b9d2 100644--- a/apps/client/src/services/syntax_highlight.ts+++ b/apps/client/src/services/syntax_highlight.ts@@ -35,7 +35,7 @@ export async function formatCodeBlocks($container: JQuery<HTMLElement>) {export function applyCopyToClipboardButton($codeBlock: JQuery<HTMLElement>) {const $copyButton = $("<button>")- .addClass("bx component btn tn-tool-button bx-copy copy-button")+ .addClass("bx component icon-action tn-tool-button bx-copy copy-button").attr("title", t("code_block.copy_title")).on("click", () => copyText($codeBlock.text()));$codeBlock.parent().append($copyButton);diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.cssindex 149ae03cd1..b1d5f469ef 100644--- a/apps/client/src/stylesheets/style.css+++ b/apps/client/src/stylesheets/style.css@@ -535,9 +535,8 @@ pre {pre > button.copy-button {position: absolute;- top: 1em;- right: 1em;- opacity: 0.8;+ top: .35em;+ right: .35em;}pre > button.copy-button:hover {