loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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:
<img width="255" alt="Screenshot 2024-02-11 at 15 31 00"
src="https://github.com/go-gitea/gitea/assets/115237/f65c1d02-d8a3-4171-ad3d-4c95871fb2ba">

After:
<img width="260" alt="Screenshot 2024-02-11 at 15 30 48"
src="https://github.com/go-gitea/gitea/assets/115237/a9b25b56-8d3f-4910-af60-2513d44f6d81">

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit 363b5f0b595df4c703d80878d2f2a1bafd647291)

authored by

silverwind
wxiaoguang
and committed by
Earl Warren
7474f628 7263b3ef

+7 -7
+3 -3
templates/repo/header.tmpl
··· 5 5 <div class="flex-item gt-ac"> 6 6 <div class="flex-item-leading">{{template "repo/icon" .}}</div> 7 7 <div class="flex-item-main"> 8 - <div class="flex-item-title"> 9 - <a class="text light thin" href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>/ 10 - <a class="text primary" href="{{$.RepoLink}}">{{.Name}}</a></div> 8 + <div class="flex-item-title gt-font-18"> 9 + <a class="muted gt-font-normal" href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>/ 10 + <a class="muted" href="{{$.RepoLink}}">{{.Name}}</a></div> 11 11 </div> 12 12 <div class="flex-item-trailing"> 13 13 {{if .IsArchived}}
+4 -4
templates/repo/icon.tmpl
··· 1 1 {{$avatarLink := (.RelAvatarLink ctx)}} 2 2 {{if $avatarLink}} 3 - <img class="ui avatar gt-vm" src="{{$avatarLink}}" width="32" height="32" alt="{{.FullName}}"> 3 + <img class="ui avatar gt-vm" src="{{$avatarLink}}" width="24" height="24" alt="{{.FullName}}"> 4 4 {{else if $.IsMirror}} 5 - {{svg "octicon-mirror" 32}} 5 + {{svg "octicon-mirror" 24}} 6 6 {{else if $.IsFork}} 7 - {{svg "octicon-repo-forked" 32}} 7 + {{svg "octicon-repo-forked" 24}} 8 8 {{else}} 9 - {{svg "octicon-repo" 32}} 9 + {{svg "octicon-repo" 24}} 10 10 {{end}}