Skip to content

Commit 53352b3

Browse files
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 <wael@forsure.ai>
1 parent b035290 commit 53352b3

File tree

2 files changed

+1
-2
lines changed
  • apps/site/components/Common
  • packages/ui-components/src/Providers/NotificationProvider

2 files changed

+1
-2
lines changed

apps/site/components/Common/CodeBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const CodeBox: FC<PropsWithChildren<CodeBoxProps>> = props => {
2525
copyToClipboard(text);
2626

2727
notify({
28-
duration: 300,
28+
duration: 800,
2929
message: (
3030
<div className="flex items-center gap-3">
3131
<CodeBracketIcon className={styles.icon} />

packages/ui-components/src/Providers/NotificationProvider/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export const NotificationProvider: FC<PropsWithChildren> = ({ children }) => {
3939
<NotificationDispatch.Provider value={dispatch}>
4040
<Toast.Provider>
4141
{children}
42-
4342
{notification && (
4443
<Notification duration={notification.duration}>
4544
{notification.message}

0 commit comments

Comments
 (0)