Skip to content

Commit 3f5a5e2

Browse files
silverwindGiteaBot
authored andcommitted
Fix file path width in repo non-homepage view (go-gitea#30951)
Fixes: go-gitea#30940 <img width="1310" alt="Screenshot 2024-05-11 at 20 48 41" src="https://github.com/go-gitea/gitea/assets/115237/f163dfd4-1299-421f-a99e-cd0c793e0e3d">
1 parent bc45588 commit 3f5a5e2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

templates/repo/home.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
{{$n := len .TreeNames}}
4646
{{$l := Eval $n "-" 1}}
4747
{{$isHomepage := (eq $n 0)}}
48-
<div class="repo-button-row">
48+
<div class="repo-button-row" data-is-homepage="{{$isHomepage}}">
4949
<div class="repo-button-row-left">
5050
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "tw-mr-1"}}
5151
{{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}}

web_src/css/repo.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,6 +2256,10 @@ td .commit-summary {
22562256
justify-content: flex-end;
22572257
}
22582258

2259+
.repo-button-row[data-is-homepage="false"] .repo-button-row-right {
2260+
flex-grow: 0;
2261+
}
2262+
22592263
@media (max-width: 991px) {
22602264
.repository:not(.wiki) .repo-button-row {
22612265
flex-direction: column;

0 commit comments

Comments
 (0)