2
0

refactor(ui): move license badge to description row in repo list
Some checks failed
Build and Release / Create Release (push) Has been cancelled
Build and Release / Unit Tests (push) Has been cancelled
Build and Release / Integration Tests (PostgreSQL) (push) Has been cancelled
Build and Release / Lint (push) Has been cancelled
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Has been cancelled
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Has been cancelled
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binaries (amd64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binary (linux/arm64) (push) Has been cancelled

Repositions the license badge from the stats row to the description area, aligning it to the right. This improves visual hierarchy and makes better use of space in the repository list view.
This commit is contained in:
2026-01-22 17:33:00 -05:00
parent 10b7e17471
commit c32111f87d

View File

@@ -51,18 +51,18 @@
<span class="tw-contents" aria-label="{{ctx.Locale.Tr "repo.forks"}}">{{svg "octicon-git-branch" 16}}</span>
<span {{if ge .NumForks 1000}}data-tooltip-content="{{.NumForks}}"{{end}}>{{CountFmt .NumForks}}</span>
</a>
{{if and $.PageIsViewRepositories .LicenseType}}
<span class="flex-text-inline" title="{{ctx.Locale.Tr "repo.license"}}">
{{svg "octicon-law" 16}}
{{.LicenseType}}
</span>
{{end}}
</div>
</div>
{{$description := .DescriptionHTML ctx}}
{{if $description}}
<div class="flex-item-body">{{$description}}</div>
{{end}}
<div class="flex-item-body tw-flex tw-justify-between tw-items-start tw-gap-2">
<div class="tw-flex-1">{{if $description}}{{$description}}{{end}}</div>
{{if .LicenseType}}
<span class="tw-flex tw-items-center tw-gap-1 tw-shrink-0 muted-links">
{{svg "octicon-law" 14}}
{{.LicenseType}}
</span>
{{end}}
</div>
{{if .Topics}}
<div class="label-list">
{{range .Topics}}