diff --git a/packages/core-web/src/styles/markbind.css b/packages/core-web/src/styles/markbind.css index 4a8c7b4d49..5ad4b56284 100644 --- a/packages/core-web/src/styles/markbind.css +++ b/packages/core-web/src/styles/markbind.css @@ -296,10 +296,12 @@ button.function-btn { color: darkgray; cursor: pointer; display: none; + height: 30px; margin: 0.17rem; padding: 0.35rem; position: absolute; right: 0; + width: 30px; text-align: center; white-space: nowrap; } @@ -404,4 +406,4 @@ h6 { left: 0; width: 100%; height: 100%; -} +} \ No newline at end of file diff --git a/packages/core/src/plugins/codeBlockCopyButtons.ts b/packages/core/src/plugins/codeBlockCopyButtons.ts index 2cc0cd1602..66303884e5 100644 --- a/packages/core/src/plugins/codeBlockCopyButtons.ts +++ b/packages/core/src/plugins/codeBlockCopyButtons.ts @@ -22,6 +22,18 @@ const COPY_ICON = ` `; +const TICK_ICON = ` + + + +`; + function getButtonHTML() { const html = ` @@ -35,6 +47,7 @@ const copyCodeBlockScript = ``;