diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 6df9f7d72a..ef76f3ed5d 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -45,7 +45,7 @@ {{$n := len .TreeNames}} {{$l := Eval $n "-" 1}} {{$isHomepage := (eq $n 0)}} -
+
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "tw-mr-1"}} {{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}} diff --git a/web_src/css/repo.css b/web_src/css/repo.css index d42b3b45bd..56235f8ebe 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -2256,6 +2256,10 @@ td .commit-summary { justify-content: flex-end; } +.repo-button-row[data-is-homepage="false"] .repo-button-row-right { + flex-grow: 0; +} + @media (max-width: 991px) { .repository:not(.wiki) .repo-button-row { flex-direction: column;