chore(ui): improvements to tag label display (#9251)

ref #9231

Removed the conditional inclusion of the `primary` class as this one is unneeded after the use of the dedicated class

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9251
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
This commit is contained in:
pat-s 2025-09-11 17:29:49 +02:00 committed by 0ko
commit 204ab32f82
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,3 @@
<a class="ui label basic tw-p-1 primary{{if .IsRelease}} primary{{end}}" href="{{.RepoLink}}/src/tag/{{.TagName|PathEscape}}">
<a class="ui label basic tag-label tw-p-1" href="{{.RepoLink}}/src/tag/{{.TagName|PathEscape}}">
{{svg "octicon-tag"}} {{.TagName}}
</a>

View file

@ -125,3 +125,11 @@
.repository.new.release .markup {
min-height: 240px;
}
.ui.label.basic.tag-label {
border-color: var(--color-primary);
}
a.ui.label.basic.tag-label:hover {
border-color: var(--color-primary-dark-1);
}