From 2665d6ab813239e70d41e027692f30469df516da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= Date: Tue, 20 Jan 2026 23:01:56 +0800 Subject: [PATCH] Improves UI alignment and copy feedback clarity Removes unnecessary spacing and minimum height from layout styles to enhance visual consistency. Updates copy feedback to display a clearer success message, improving user interaction and clarity. --- src/App.css | 2 -- src/components/CopyButton.js | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/App.css b/src/App.css index 78a8be4..4b8aa09 100644 --- a/src/App.css +++ b/src/App.css @@ -651,7 +651,6 @@ select { align-items: center; /* 垂直居中 */ justify-content: center; /* 横向居中 */ gap: 10px; - margin-bottom: 25px; border-radius: var(--radius); overflow-x: auto; overflow-y: hidden; @@ -760,7 +759,6 @@ select { .timestamp-display { padding: 12px; - min-height: 70px; align-items: center; /* 垂直居中 */ justify-content: center; /* 横向居中 */ } diff --git a/src/components/CopyButton.js b/src/components/CopyButton.js index 254b457..0a1d268 100644 --- a/src/components/CopyButton.js +++ b/src/components/CopyButton.js @@ -17,6 +17,7 @@ const CopyButton = ({ // 复制成功的处理 const handleCopySuccess = useCallback(() => { setCopyStatus('success'); + setBtnText('复制成功!'); // 2秒后恢复 setTimeout(() => {