Skip to content

Commit bc7d599

Browse files
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>
1 parent c4e27cb commit bc7d599

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templates/repo/commits.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<div class="ui container">
55
{{template "repo/sub_menu" .}}
66
<div class="repo-button-row">
7-
<div class="tw-flex tw-items-center">
8-
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "tw-mr-1"}}
7+
<div class="repo-button-row-left">
8+
{{template "repo/branch_dropdown" dict "root" .}}
99
<a href="{{.RepoLink}}/graph" class="ui basic small compact button">
1010
{{svg "octicon-git-branch"}}
1111
{{ctx.Locale.Tr "repo.commit_graph"}}

templates/repo/home.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
{{$isHomepage := (eq $n 0)}}
4848
<div class="repo-button-row" data-is-homepage="{{$isHomepage}}">
4949
<div class="repo-button-row-left">
50-
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "tw-mr-1"}}
50+
{{template "repo/branch_dropdown" dict "root" .}}
5151
{{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}}
5252
{{$cmpBranch := ""}}
5353
{{if ne .Repository.ID .BaseRepo.ID}}

0 commit comments

Comments
 (0)