From 53352b306fcbcdb527095209221fd17b7fc955b9 Mon Sep 17 00:00:00 2001 From: Everkers <44750827+Everkers@users.noreply.github.com> Date: Tue, 15 Jul 2025 20:09:33 +0100 Subject: [PATCH] fix: improve clipboard success animation in code blocks (#7946) (#7950) * site: fix sudden success clipboard animation * site: revert animation classes * site: remove unnecessary animation logic --------- Co-authored-by: Wael --- apps/site/components/Common/CodeBox.tsx | 2 +- .../ui-components/src/Providers/NotificationProvider/index.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/site/components/Common/CodeBox.tsx b/apps/site/components/Common/CodeBox.tsx index 049e95196c4df..e7d1079d5ee11 100644 --- a/apps/site/components/Common/CodeBox.tsx +++ b/apps/site/components/Common/CodeBox.tsx @@ -25,7 +25,7 @@ const CodeBox: FC> = props => { copyToClipboard(text); notify({ - duration: 300, + duration: 800, message: (
diff --git a/packages/ui-components/src/Providers/NotificationProvider/index.tsx b/packages/ui-components/src/Providers/NotificationProvider/index.tsx index 3aca3b54edd9a..b086b09b17a7f 100644 --- a/packages/ui-components/src/Providers/NotificationProvider/index.tsx +++ b/packages/ui-components/src/Providers/NotificationProvider/index.tsx @@ -39,7 +39,6 @@ export const NotificationProvider: FC = ({ children }) => { {children} - {notification && ( {notification.message}