From d727b515c8e9241bee814869658d8938406bd833 Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Wed, 7 Oct 2026 20:39:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AF=A6=E6=83=85=E9=A1=B5=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E6=8C=89=E9=92=AE=E6=94=B9=E7=94=A8=20fa-copy=20?= =?UTF-8?q?=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 以内联 SVG 内嵌 Font Awesome copy/check 字形(viewBox 0 0 448 512),复制成功后切换为对勾;不再为单个图标引入整个 Font Awesome 依赖。 --- src/views/ProjectView.vue | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/src/views/ProjectView.vue b/src/views/ProjectView.vue index bb5f16e..e453d57 100644 --- a/src/views/ProjectView.vue +++ b/src/views/ProjectView.vue @@ -92,7 +92,19 @@ watch(() => route.params.name, load, { immediate: true })
{{ installCommand }} - +
@@ -304,17 +316,24 @@ watch(() => route.params.name, load, { immediate: true }) .copy { flex-shrink: 0; - font-size: 0.72rem; - font-weight: 700; - letter-spacing: 0.08em; + display: inline-flex; + align-items: center; + justify-content: center; + width: 30px; + height: 28px; color: #006dad; background: #fff; border: 1px solid transparent; border-radius: var(--radius-sm); - padding: 5px 11px; transition: background 0.15s, color 0.15s; } +.copy svg { + width: 14px; + height: 14px; + fill: currentColor; +} + .copy:hover { background: rgba(255, 255, 255, 0.85); }