Skip to content

Commit 8e6a114

Browse files
authored
fix tags line no margin see #25255 (#25280)
This is my first pr, there are many things I don't understand very well, I am very sorry, I rearranged the code and opened this new pr. Now: ![image](https://github.com/go-gitea/gitea/assets/89133723/5acd9d81-2152-4966-9372-1fbf902ed073)
1 parent cc1d61f commit 8e6a114

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

templates/explore/repo_list.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
{{$description := .DescriptionHTML $.Context}}
5555
{{if $description}}<p>{{$description}}</p>{{end}}
5656
{{if .Topics}}
57-
<div class="ui tags">
57+
<div class="gt-df gt-fw gt-gap-2 gt-mb-3">
5858
{{range .Topics}}
59-
{{if ne . ""}}<a href="{{AppSubUrl}}/explore/repos?q={{.}}&topic=1"><div class="ui small label topic">{{.}}</div></a>{{end}}
59+
{{if ne . ""}}<a class="ui label" href="{{AppSubUrl}}/explore/repos?q={{.}}&topic=1">{{.}}</a>{{end}}
6060
{{end}}
6161
</div>
6262
{{end}}

web_src/css/explore.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
font-size: 12px;
3333
}
3434

35-
.ui.repository.list .item .ui.tags {
36-
margin-bottom: 0.5rem;
37-
}
38-
3935
.ui.repository.list .repo-title .labels {
4036
word-break: normal;
4137
flex-shrink: 0;

0 commit comments

Comments
 (0)