From 301eaf60bfb1e4a784763cb066bc9fd1da86468b Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 12 May 2024 06:02:25 +0200 Subject: [PATCH] Fix file path width in repo non-homepage view (#30951) Fixes: https://github.com/go-gitea/gitea/issues/30940 Screenshot 2024-05-11 at 20 48 41 --- templates/repo/home.tmpl | 2 +- web_src/css/repo.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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;