From 0f32837fa1e9c82139b8da891ea947ecd4fff894 Mon Sep 17 00:00:00 2001 From: Kerwin Bryant Date: Fri, 21 Feb 2025 00:57:38 +0000 Subject: [PATCH 1/4] Adjust the layout of the top toolbar on the issues page --- templates/repo/issue/list.tmpl | 3 ++- web_src/css/repo/list-header.css | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 01b610b39db0b..f3b60919c249a 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -15,8 +15,9 @@ {{end}}
- {{template "repo/issue/navbar" .}} {{template "repo/issue/search" .}} + {{ctx.Locale.Tr "repo.labels"}} + {{ctx.Locale.Tr "repo.milestones"}} {{if not .Repository.IsArchived}} {{if .PageIsIssueList}} {{ctx.Locale.Tr "repo.issues.new"}} diff --git a/web_src/css/repo/list-header.css b/web_src/css/repo/list-header.css index e666e046d3275..19845be7accea 100644 --- a/web_src/css/repo/list-header.css +++ b/web_src/css/repo/list-header.css @@ -5,6 +5,10 @@ gap: .5rem; } +.list-header > .ui.button { + margin: 0; +} + .list-header-search { display: flex; flex: 1; From bed1f2b133e92b0d37d676fb49221bd0882f9b0f Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 28 Mar 2025 15:08:52 +0800 Subject: [PATCH 2/4] fix margin --- templates/repo/issue/list.tmpl | 2 +- web_src/css/base.css | 5 +++++ web_src/css/repo/list-header.css | 4 ---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index f3b60919c249a..ee783b420ae9b 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -14,7 +14,7 @@
{{end}} -
+
{{template "repo/issue/search" .}} {{ctx.Locale.Tr "repo.labels"}} {{ctx.Locale.Tr "repo.milestones"}} diff --git a/web_src/css/base.css b/web_src/css/base.css index 1a354c96633fe..89978386326f1 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -1391,6 +1391,11 @@ table th[data-sortt-desc] .svg { min-width: 0; } +.flex-text-block > .ui.button, +.flex-text-inline > .ui.button { + margin: 0; /* fomantic buttons have default margin, when we use them in a flex container with gap, we do not need these margins */ +} + /* to override Fomantic's default display: block for ".menu .item", and use a slightly larger gap for menu item content the "!important" is necessary to override Fomantic UI menu item styles, meanwhile we should keep the "hidden" items still hidden */ .ui.dropdown .menu.flex-items-menu > .item:not(.hidden, .filtered, .tw-hidden) { diff --git a/web_src/css/repo/list-header.css b/web_src/css/repo/list-header.css index 19845be7accea..e666e046d3275 100644 --- a/web_src/css/repo/list-header.css +++ b/web_src/css/repo/list-header.css @@ -5,10 +5,6 @@ gap: .5rem; } -.list-header > .ui.button { - margin: 0; -} - .list-header-search { display: flex; flex: 1; From 75df896c15b7e567e14f106b87ba7091596b5349 Mon Sep 17 00:00:00 2001 From: Kerwin Bryant Date: Fri, 28 Mar 2025 07:15:13 +0000 Subject: [PATCH 3/4] fix --- templates/repo/projects/view.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/repo/projects/view.tmpl b/templates/repo/projects/view.tmpl index 05ad7264bf8fa..1b0d92df89f7c 100644 --- a/templates/repo/projects/view.tmpl +++ b/templates/repo/projects/view.tmpl @@ -2,8 +2,9 @@
{{template "repo/header" .}}
- From c605d74f4fab685efaed4e142b1f227cf0789d14 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 28 Mar 2025 15:29:36 +0800 Subject: [PATCH 4/4] fix project view --- templates/projects/view.tmpl | 9 ++++----- templates/repo/projects/view.tmpl | 2 +- web_src/css/features/projects.css | 12 ------------ 3 files changed, 5 insertions(+), 18 deletions(-) diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl index 82d744bbc29bc..217ffe635589b 100644 --- a/templates/projects/view.tmpl +++ b/templates/projects/view.tmpl @@ -1,10 +1,10 @@ {{$canWriteProject := and .CanWriteProjects (or (not .Repository) (not .Repository.IsArchived))}}
-
-

{{.Project.Title}}

-
-