From ebe8e63dfdcaba71ef4448b7def8a0b051e476cb Mon Sep 17 00:00:00 2001 From: Giteabot Date: Sun, 12 May 2024 20:07:16 +0800 Subject: [PATCH] Fix file path width in repo non-homepage view (#30951) (#30952) Backport #30951 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/30940 Screenshot 2024-05-11 at 20 48 41 Co-authored-by: silverwind --- 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 67b178350e..d7702e35a5 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;