diff options
author | Kerwin Bryant <kerwin612@qq.com> | 2024-11-22 14:12:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-22 06:12:50 +0000 |
commit | bc7d599030cad2e69139b79ad5a878504fbf8ed9 (patch) | |
tree | 0b6f881caf52f54168beca02cc963f83fefe09b0 /templates/repo/home.tmpl | |
parent | c4e27cb27b99dd9528c999fdc8b1073f28be6313 (diff) | |
download | gitea-bc7d599030cad2e69139b79ad5a878504fbf8ed9.tar.gz gitea-bc7d599030cad2e69139b79ad5a878504fbf8ed9.zip |
Fix issues with inconsistent spacing in areas (#32607)
Fix issues with inconsistent spacing in areas where the branch_dropdown
component is used.
before:
![1732238359257](https://github.com/user-attachments/assets/38edda1f-ec4e-419e-9264-68009375d177)
![1732238334410](https://github.com/user-attachments/assets/c4770aea-bc83-477c-9b6a-632f984c0d7d)
after:
![1732238273317](https://github.com/user-attachments/assets/4d05068e-db97-45af-86c4-29442dff1bdf)
![1732238723881](https://github.com/user-attachments/assets/69acd286-f79b-44fe-ad73-2d5fc6dfc98c)
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r-- | templates/repo/home.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 0a8391b553..12c4a17234 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -47,7 +47,7 @@ {{$isHomepage := (eq $n 0)}} <div class="repo-button-row" data-is-homepage="{{$isHomepage}}"> <div class="repo-button-row-left"> - {{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "tw-mr-1"}} + {{template "repo/branch_dropdown" dict "root" .}} {{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}} {{$cmpBranch := ""}} {{if ne .Repository.ID .BaseRepo.ID}} |