fix(ui): Fix repo description margin

This commit is contained in:
Minecon724 2025-10-17 17:02:52 +00:00
commit d2371d30ce
Signed by untrusted user who does not match committer: m724
GPG key ID: A02E6E67AB961189

View file

@ -9,14 +9,17 @@
</div>
</div>
<div class="repo-topics tw-my-2" id="repo-topics">
{{range .Topics}}
<a class="repo-topic ui large label" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>
{{$canManageTopics := and .Permission.IsAdmin (not .Repository.IsArchived)}}
{{if or $canManageTopics .Topics}}
<div class="repo-topics tw-mt-2" id="repo-topics">
{{range .Topics}}
<a class="repo-topic ui large label" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>
{{end}}
{{if $canManageTopics}}
<button id="manage_topic" class="btn interact-fg tw-text-12">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button>
{{end}}
</div>
{{end}}
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}
<button id="manage_topic" class="btn interact-fg tw-text-12">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button>
{{end}}
</div>
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}
<div class="ui form tw-hidden tw-flex tw-gap-2 tw-my-3" id="topic_edit">
@ -34,4 +37,4 @@
</div>
</div>
{{end}}
</div>
</div>