From 62c880b0a835125520d480c46d8439262c5826ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= Date: Wed, 27 May 2026 17:07:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(CopyButton,=20LiveClock):=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8C=89=E9=92=AE=E5=A4=A7=E5=B0=8F=E4=B8=BA=20'icon'?= =?UTF-8?q?=EF=BC=8C=E7=A7=BB=E9=99=A4=E7=A1=AC=E7=BC=96=E7=A0=81=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CopyButton.tsx | 3 +-- pages/Timestamp/LiveClock.tsx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/components/CopyButton.tsx b/components/CopyButton.tsx index 99570de..608edf7 100644 --- a/components/CopyButton.tsx +++ b/components/CopyButton.tsx @@ -15,7 +15,7 @@ export const CopyButton: React.FC = ({ text, tooltip, variant = 'ghost', - size = 'sm', + size = 'icon', className, ...props }) => { @@ -55,7 +55,6 @@ export const CopyButton: React.FC = ({ title={tooltip ?? t('buttons.copy')} className={cn( buttonVariants({ variant, size }), - 'h-8 w-8', copied && 'bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-500/10', className, diff --git a/pages/Timestamp/LiveClock.tsx b/pages/Timestamp/LiveClock.tsx index 736e7c5..a503e87 100644 --- a/pages/Timestamp/LiveClock.tsx +++ b/pages/Timestamp/LiveClock.tsx @@ -88,8 +88,7 @@ const LiveClock = React.memo(({ unit, onUseNow, className, ...props }: LiveClock );