From 7474f6285796109906c0de6870fd92e865fd8196 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 15 Feb 2024 17:52:21 +0100 Subject: [PATCH] Tweak repo header (#29134) - Tweak colors, remove link color from repo name and make text use inherited color - Downsize repo icon from 32px to 24px Before: Screenshot 2024-02-11 at 15 31 00 After: Screenshot 2024-02-11 at 15 30 48 --------- Co-authored-by: wxiaoguang (cherry picked from commit 363b5f0b595df4c703d80878d2f2a1bafd647291) --- templates/repo/header.tmpl | 6 +++--- templates/repo/icon.tmpl | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 6fe0b39b5..086ffd85f 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -5,9 +5,9 @@
{{template "repo/icon" .}}
{{if .IsArchived}} diff --git a/templates/repo/icon.tmpl b/templates/repo/icon.tmpl index 5a80b959d..a001f8189 100644 --- a/templates/repo/icon.tmpl +++ b/templates/repo/icon.tmpl @@ -1,10 +1,10 @@ {{$avatarLink := (.RelAvatarLink ctx)}} {{if $avatarLink}} - {{.FullName}} + {{.FullName}} {{else if $.IsMirror}} - {{svg "octicon-mirror" 32}} + {{svg "octicon-mirror" 24}} {{else if $.IsFork}} - {{svg "octicon-repo-forked" 32}} + {{svg "octicon-repo-forked" 24}} {{else}} - {{svg "octicon-repo" 32}} + {{svg "octicon-repo" 24}} {{end}}