aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-12-04 16:57:32 -0800
committerGitHub <noreply@github.com>2024-12-05 00:57:32 +0000
commitc5422fae9a41b870257b8cbe148ff8e661b190a0 (patch)
tree56080747085dfcdd04a55544565fbd50c243770c /templates/repo
parent0c3c041c88afc66a5048c1d8cf1b29c8bbbb798f (diff)
downloadgitea-c5422fae9a41b870257b8cbe148ff8e661b190a0.tar.gz
gitea-c5422fae9a41b870257b8cbe148ff8e661b190a0.zip
Fix fork page branch selection (#32711)
Fix #32709
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/pulls/fork.tmpl14
1 files changed, 6 insertions, 8 deletions
diff --git a/templates/repo/pulls/fork.tmpl b/templates/repo/pulls/fork.tmpl
index 2cf0a85fc8..7af535f1d3 100644
--- a/templates/repo/pulls/fork.tmpl
+++ b/templates/repo/pulls/fork.tmpl
@@ -53,20 +53,18 @@
</div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.fork_branch"}}</label>
- <div class="ui selection dropdown">
+ <div class="ui selection dropdown ellipsis-items-nowrap">
<input type="hidden" id="fork_single_branch" name="fork_single_branch" value="" required>
- <span class="text truncated-item-container" data-value="" title="{{ctx.Locale.Tr "repo.all_branches"}}">
+ <div class="text" title="{{ctx.Locale.Tr "repo.all_branches"}}">
<span class="truncated-item-name">{{ctx.Locale.Tr "repo.all_branches"}}</span>
- </span>
+ </div>
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu">
- <div class="item truncated-item-container" data-value="" title="{{ctx.Locale.Tr "repo.all_branches"}}">
- <span class="truncated-item-name">{{ctx.Locale.Tr "repo.all_branches"}}</span>
+ <div class="item" data-value="" title="{{ctx.Locale.Tr "repo.all_branches"}}">
+ {{ctx.Locale.Tr "repo.all_branches"}}
</div>
{{range .Branches}}
- <div class="item truncated-item-container" data-value="{{.}}" title="{{.}}">
- <span class="truncated-item-name">{{.}}</span>
- </div>
+ <div class="item" data-value="{{.}}" title="{{.}}">{{.}}</div>
{{end}}
</div>
</div>