diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 30edf825f..1654cd2c9 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -14,7 +14,7 @@ {{end}} -
+
{{template "repo/issue/navbar" .}} {{template "repo/issue/search" .}} {{if not .Repository.IsArchived}} diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl index 5c95018cd..3a5ba0f4a 100644 --- a/templates/repo/issue/view_title.tmpl +++ b/templates/repo/issue/view_title.tmpl @@ -14,7 +14,7 @@
{{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .Repository.IsArchived)}} - + {{end}} {{if not .Issue.IsPull}} {{ctx.Locale.Tr "repo.issues.new"}} diff --git a/web_src/css/base.css b/web_src/css/base.css index a63a3ddde..05ab0255e 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -21,6 +21,7 @@ --border-radius-circle: 50%; --opacity-disabled: 0.55; --height-loading: 16rem; + --repo-header-issue-min-height: 41px; --min-height-textarea: 132px; /* padding + 6 lines + border = calc(1.57142em + 6lh + 2px), but lh is not fully supported */ --tab-size: 4; } diff --git a/web_src/css/repo.css b/web_src/css/repo.css index d28dc4b96..3d867fcf1 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -569,6 +569,10 @@ display: flex; } +.issue-title-buttons { + gap: 0.5rem; +} + @media (max-width: 767.98px) { .repository.view.issue .issue-title { flex-direction: column; @@ -611,7 +615,7 @@ line-height: 40px; margin: 0; padding-right: 0.25rem; - min-height: 41px; /* avoid layout shift on edit */ + min-height: var(--repo-header-issue-min-height); } .repository.view.issue .issue-title h1 .ui.input { @@ -2180,7 +2184,7 @@ margin: 0 !important; position: relative; color: var(--color-text); - min-height: 41px; + min-height: var(--repo-header-issue-min-height); background-color: var(--color-box-header); display: flex; justify-content: space-between; diff --git a/web_src/css/repo/issue-list.css b/web_src/css/repo/issue-list.css index 6c3755fa4..e46ffeb4f 100644 --- a/web_src/css/repo/issue-list.css +++ b/web_src/css/repo/issue-list.css @@ -16,6 +16,14 @@ flex-wrap: wrap; } +.issue-list-new.button { + margin-right: 0; +} + +.list-header-issues { + min-height: var(--repo-header-issue-min-height); +} + @media (max-width: 767.98px) { .issue-list-navbar { order: 0;