mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Fix button alignments (#34276)
Continue with #34206. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
@@ -47,16 +47,20 @@ Search "repo/branch_dropdown" in the template directory to find all occurrences.
|
||||
>
|
||||
{{/* show dummy elements before Vue componment is mounted, this code must match the code in BranchTagSelector.vue */}}
|
||||
<div class="ui dropdown custom branch-selector-dropdown ellipsis-text-items">
|
||||
<div class="ui button branch-dropdown-button">
|
||||
<div class="ui compact button branch-dropdown-button">
|
||||
<span class="flex-text-block gt-ellipsis">
|
||||
{{if not .DropdownFixedText}}
|
||||
{{if .ShowTabTags}}
|
||||
{{if .DropdownFixedText}}
|
||||
{{.DropdownFixedText}}
|
||||
{{else}}
|
||||
{{if eq .CurrentRefType "tag"}}
|
||||
{{svg "octicon-tag"}}
|
||||
{{else if .ShowTabBranches}}
|
||||
{{else if eq .CurrentRefType "branch"}}
|
||||
{{svg "octicon-git-branch"}}
|
||||
{{else}}
|
||||
{{svg "octicon-git-commit"}}
|
||||
{{end}}
|
||||
<strong class="tw-inline-block gt-ellipsis">{{.CurrentRefShortName}}</strong>
|
||||
{{end}}
|
||||
<strong class="tw-ml-2 tw-inline-block gt-ellipsis">{{Iif .DropdownFixedText .SelectedRefShortName}}</strong>
|
||||
</span>
|
||||
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
||||
</div>
|
||||
|
@@ -14,7 +14,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="flex-text-block">
|
||||
{{template "repo/clone_panel" .}}
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user