From 0866ed474289ab7698af7523b29dd4af7e7ec823 Mon Sep 17 00:00:00 2001 From: NewName Date: Tue, 20 May 2025 17:56:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ghproxy/public/search.html | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/ghproxy/public/search.html b/ghproxy/public/search.html index 6ca75ef..7b1299e 100644 --- a/ghproxy/public/search.html +++ b/ghproxy/public/search.html @@ -104,7 +104,7 @@ .result-title { font-size: 1.2rem; - font-weight: bold; + font-weight: 500; margin-bottom: 10px; color: #0091e2; display: flex; @@ -118,6 +118,7 @@ margin: 10px 0; font-size: 0.95rem; line-height: 1.5; + opacity: 0.9; } .result-meta { @@ -137,6 +138,7 @@ align-items: center; gap: 15px; flex-wrap: wrap; + font-size: 0.95rem; } .meta-pulls { @@ -152,7 +154,7 @@ } .badge { - padding: 4px 8px; + padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: normal; @@ -167,6 +169,7 @@ .badge-organization { background-color: #6c757d; color: white; + font-weight: normal; } .badge-automated { @@ -178,6 +181,11 @@ display: inline-flex; align-items: center; white-space: nowrap; + color: #666; + } + + .meta-item .icon { + opacity: 0.7; } .back-button { @@ -400,6 +408,13 @@ width: 100%; } } + + .icon { + display: inline-block; + vertical-align: middle; + margin-right: 4px; + margin-top: -2px; + } @@ -643,11 +658,10 @@ const badges = []; if (result.is_official) badges.push('官方'); if (organization) badges.push(`By ${organization}`); - if (result.is_automated) badges.push('自动构建'); const stats = []; - if (pullCount > 0) stats.push(`${formatNumber(pullCount)}+`); - if (starCount > 0) stats.push(`${formatNumber(starCount)}`); + if (pullCount > 0) stats.push(`${formatNumber(pullCount)}+`); + if (starCount > 0) stats.push(`${formatNumber(starCount)}`); card.innerHTML = `