Skip to content

Commit 4aba4f8

Browse files
GiteaBotwxiaoguang
andauthored
Fix dropdown text ellipsis (#30628) (#30633)
Backport #30628 by @wxiaoguang Follow #30547 (comment) Fix #30624 The Fomantic UI Dropdown wasn't designed to work that way, its "text" element might contain images. So the "overflow" shouldn't be added to any general dropdown text. ![image](https://github.com/go-gitea/gitea/assets/2114189/f6ceaabd-bc89-4bf2-baa2-a6f0324c1962) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 parent 5dbe749 commit 4aba4f8

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

templates/repo/issue/view_content/reference_issue_dialog.tmpl

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<div class="header">
33
{{ctx.Locale.Tr "repo.issues.context.reference_issue"}}
44
</div>
5-
<div class="content tw-text-left">
6-
<form class="ui form form-fetch-action" action="{{printf "%s/issues/new" .Repository.Link}}" method="post">
5+
<div class="content">
6+
<form class="ui form form-fetch-action" action="{{.Repository.Link}}/issues/new" method="post">
77
{{.CsrfTokenHtml}}
88
<div class="field">
99
<label><strong>{{ctx.Locale.Tr "repository"}}</strong></label>
1010
<div class="ui search selection dropdown issue_reference_repository_search">
11-
<div class="default text">{{.Repository.FullName}}</div>
11+
<div class="default text gt-ellipsis">{{.Repository.FullName}}</div>
1212
<div class="menu"></div>
1313
</div>
1414
</div>
@@ -18,7 +18,7 @@
1818
</div>
1919
<div class="field">
2020
<label><strong>{{ctx.Locale.Tr "repo.issues.reference_issue.body"}}</strong></label>
21-
<textarea name="content" class="form-control"></textarea>
21+
<textarea name="content"></textarea>
2222
</div>
2323
<div class="text right">
2424
<button class="ui primary button">{{ctx.Locale.Tr "repo.issues.create"}}</button>

web_src/css/base.css

-6
Original file line numberDiff line numberDiff line change
@@ -506,12 +506,6 @@ ol.ui.list li,
506506
color: var(--color-text-light-2);
507507
}
508508

509-
.ui.dropdown > .text {
510-
white-space: nowrap;
511-
overflow: hidden;
512-
text-overflow: ellipsis;
513-
}
514-
515509
/* extend fomantic style '.ui.dropdown > .text > img' to include svg.img */
516510
.ui.dropdown > .text > .img {
517511
margin-left: 0;

0 commit comments

Comments
 (0)