Skip to content

Commit cf5db37

Browse files
committed
Merge remote-tracking branch 'kerwin612/patch-1' into fix/button-alignments
2 parents d29bc96 + 14df388 commit cf5db37

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

templates/repo/branch_dropdown.tmpl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,18 @@ Search "repo/branch_dropdown" in the template directory to find all occurrences.
4747
>
4848
{{/* show dummy elements before Vue componment is mounted, this code must match the code in BranchTagSelector.vue */}}
4949
<div class="ui dropdown custom branch-selector-dropdown ellipsis-text-items">
50-
<div class="ui button branch-dropdown-button">
50+
<div class="ui compact button branch-dropdown-button">
5151
<span class="flex-text-block gt-ellipsis">
52-
{{if not .DropdownFixedText}}
52+
{{if .DropdownFixedText}}
53+
{{.DropdownFixedText}}
54+
{{else}}
5355
{{if .ShowTabTags}}
5456
{{svg "octicon-tag"}}
5557
{{else if .ShowTabBranches}}
5658
{{svg "octicon-git-branch"}}
5759
{{end}}
60+
<strong class="tw-inline-block gt-ellipsis">{{.SelectedRefShortName}}</strong>
5861
{{end}}
59-
<strong class="tw-ml-2 tw-inline-block gt-ellipsis">{{Iif .DropdownFixedText .SelectedRefShortName}}</strong>
6062
</span>
6163
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
6264
</div>

0 commit comments

Comments
 (0)