From 1cde225e86f90b6249042cb66605a9a6ff7c3a5e Mon Sep 17 00:00:00 2001 From: Jiu-xiao <2592509183@qq.com> Date: Thu, 12 Nov 2026 01:07:18 +0000 Subject: [PATCH] Home: the English email tag fits its card MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The English label "Email, click to copy" was wider than the 64 px tag and covered the GitHub and QQ Group tags next to it. The tag now reads "Email", as the Chinese one reads 邮箱, and the copy hint moves into the button's title in both languages. The unused home.hero.tag.emailName entry is removed. --- i18n/en/code.json | 6 +++--- src/pages/index.tsx | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/i18n/en/code.json b/i18n/en/code.json index 32c97c5..a3509bf 100644 --- a/i18n/en/code.json +++ b/i18n/en/code.json @@ -1556,11 +1556,11 @@ "message": "GitHub" }, "home.hero.tag.email": { - "message": "Email, click to copy" - }, - "home.hero.tag.emailName": { "message": "Email" }, + "home.hero.tag.emailHint": { + "message": "Click to copy the email address" + }, "home.hero.tag.copied": { "message": "Copied ✓" }, diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 99bb213..1f399d4 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -84,6 +84,7 @@ function HeroTags(): JSX.Element { label: string; icon: string; href?: string; + hint?: string; onClick?: () => void; }> = [ { @@ -110,6 +111,7 @@ function HeroTags(): JSX.Element { ? translate({ id: 'home.hero.tag.copied', message: '已复制 ✓' }) : translate({ id: 'home.hero.tag.email', message: '邮箱' }), icon: MAIL_ICON, + hint: translate({ id: 'home.hero.tag.emailHint', message: '点击复制邮箱地址' }), onClick: () => void copyEmail(), }, { @@ -164,7 +166,7 @@ function HeroTags(): JSX.Element { } return ( );