fix(CopyButton, LiveClock): 修改按钮大小为 'icon',移除硬编码颜色配置

This commit is contained in:
雨霖铃
2026-05-27 17:07:39 +08:00
parent e263b63ced
commit 62c880b0a8
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -15,7 +15,7 @@ export const CopyButton: React.FC<CopyButtonProps> = ({
text,
tooltip,
variant = 'ghost',
size = 'sm',
size = 'icon',
className,
...props
}) => {
@@ -55,7 +55,6 @@ export const CopyButton: React.FC<CopyButtonProps> = ({
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,