From e893dc03279a34553c9d75882052944013f3b944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aneta=20Jastrz=C4=99bska?= <1544710+anetaj@users.noreply.github.com> Date: Sat, 21 Sep 2024 13:12:22 +0200 Subject: [PATCH] add default style for small button --- .../src/sidebar/MarkdownRender/BlockCode.tsx | 16 ++++---- extensions/void/src/sidebar/styles.css | 40 ++++++++++--------- 2 files changed, 30 insertions(+), 26 deletions(-) diff --git a/extensions/void/src/sidebar/MarkdownRender/BlockCode.tsx b/extensions/void/src/sidebar/MarkdownRender/BlockCode.tsx index 812c7e2a..e165ce1e 100644 --- a/extensions/void/src/sidebar/MarkdownRender/BlockCode.tsx +++ b/extensions/void/src/sidebar/MarkdownRender/BlockCode.tsx @@ -7,7 +7,7 @@ enum CopyButtonState { Error = "Could not copy", } -const COPY_FEEDBACK_TIMEOUT = 2000 +const COPY_FEEDBACK_TIMEOUT = 1000 // code block with Apply button at top const BlockCode = ({ @@ -42,9 +42,15 @@ const BlockCode = ({