From 8e6a114317e6b6b137116f1b8e33c2290056cb6e Mon Sep 17 00:00:00 2001 From: hiifong Date: Sat, 24 Jun 2023 20:30:46 +0800 Subject: [PATCH] fix tags line no margin see #25255 (#25280) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- templates/explore/repo_list.tmpl | 4 ++-- web_src/css/explore.css | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl index 49adfe5b45..47e9921332 100644 --- a/templates/explore/repo_list.tmpl +++ b/templates/explore/repo_list.tmpl @@ -54,9 +54,9 @@ {{$description := .DescriptionHTML $.Context}} {{if $description}}

{{$description}}

{{end}} {{if .Topics}} -
+
{{range .Topics}} - {{if ne . ""}}
{{.}}
{{end}} + {{if ne . ""}}{{.}}{{end}} {{end}}
{{end}} diff --git a/web_src/css/explore.css b/web_src/css/explore.css index f4d1eed960..139dfcb19f 100644 --- a/web_src/css/explore.css +++ b/web_src/css/explore.css @@ -32,10 +32,6 @@ font-size: 12px; } -.ui.repository.list .item .ui.tags { - margin-bottom: 0.5rem; -} - .ui.repository.list .repo-title .labels { word-break: normal; flex-shrink: 0;