From 4defba1639dc80e9c5147e2c12fdcb8a4295157f Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 8 Jul 2023 13:08:50 +0200 Subject: [PATCH 1/3] Tweak repo topics bar --- templates/repo/home.tmpl | 8 ++++---- web_src/css/repo.css | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 394bab1e38be1..54d4bd9869fc4 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -5,7 +5,7 @@ {{template "base/alert" .}} {{template "repo/code/recently_pushed_new_branches" .}} {{if and (not .HideRepoInfo) (not .IsBlame)}} -
+
{{$description := .Repository.DescriptionHTML $.Context}} {{if $description}}{{$description}}{{else if .IsRepositoryAdmin}}{{.locale.Tr "repo.no_desc"}}{{end}} @@ -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 3862436701957..9df5dc711fe19 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -2777,7 +2777,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 { From 05d510904e193a003905f9e9b08cbddc7e6a177a Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 8 Jul 2023 13:16:22 +0200 Subject: [PATCH 2/3] tweak margin --- templates/repo/home.tmpl | 2 +- web_src/css/repo.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 54d4bd9869fc4..aaa1a1b9748d8 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -5,7 +5,7 @@ {{template "base/alert" .}} {{template "repo/code/recently_pushed_new_branches" .}} {{if and (not .HideRepoInfo) (not .IsBlame)}} -
+
{{$description := .Repository.DescriptionHTML $.Context}} {{if $description}}{{$description}}{{else if .IsRepositoryAdmin}}{{.locale.Tr "repo.no_desc"}}{{end}} diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 9df5dc711fe19..87983cf758a36 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: 6px; } @media (max-width: 767.68px) { From 1a4e8ca0c3a32d58e63a6c80e2b7f7be77087f0c Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 8 Jul 2023 13:20:41 +0200 Subject: [PATCH 3/3] fine-tune --- web_src/css/repo.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 87983cf758a36..da5cd06b3e8a4 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -231,7 +231,7 @@ display: flex; justify-content: space-between; align-items: center; - margin-bottom: 6px; + margin-bottom: 5px; } @media (max-width: 767.68px) {