From f8bb1018ae70d14db31631f567fa651680d7b215 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 8 Jul 2023 20:12:30 +0200 Subject: [PATCH] Tweak repo topics bar (#25769) Minor tweaks to repo topics: - Use gap instead of margin to align "Manage Topics" when no topics present - Add margin to description instead Before: Screenshot 2023-07-08 at 13 08 15 Screenshot 2023-07-08 at 13 08 05 After: Screenshot 2023-07-08 at 13 08 42 Screenshot 2023-07-08 at 13 08 32 --------- --- templates/repo/home.tmpl | 6 +++--- web_src/css/repo.css | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 394bab1e3..aaa1a1b97 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -29,9 +29,9 @@ {{end}} -
- {{range .Topics}}{{.Name}}{{end}} - {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{end}} +
+ {{range .Topics}}{{.Name}}{{end}} + {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{end}}
{{end}} {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 386243670..da5cd06b3 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -231,6 +231,7 @@ display: flex; justify-content: space-between; align-items: center; + margin-bottom: 5px; } @media (max-width: 767.68px) { @@ -2777,7 +2778,6 @@ tbody.commit-list { #repo-topics .repo-topic { font-weight: var(--font-weight-normal); cursor: pointer; - margin: 2px; } #new-dependency-drop-list.ui.selection.dropdown {