Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/repo/search_name.tmpl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<span class="gt-ellipsis">{{.Name}}{{if DefaultShowFullName}}<span class="search-fullname"> {{.FullName}}</span>{{end}}</span>
<span class="gt-ellipsis">{{if DefaultShowFullName}}<span class="search-fullname">{{.FullName}}</span>{{else}}{{.Name}}{{end}}</span>
Comment thread
tyroneyeh marked this conversation as resolved.
Outdated
5 changes: 3 additions & 2 deletions web_src/js/features/repo-issue-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ function initDropdownUserRemoteSearch(el: Element) {
// the content is provided by backend IssuePosters handler
processedResults.length = 0;
for (const item of resp.results) {
let nameHtml = html`<img class="ui avatar tw-align-middle" src="${item.avatar_link}" aria-hidden="true" alt width="20" height="20"><span class="gt-ellipsis">${item.username}</span>`;
if (item.full_name) nameHtml += html`<span class="search-fullname tw-ml-2">${item.full_name}</span>`;
let nameHtml = html`<img class="ui avatar tw-align-middle" src="${item.avatar_link}" aria-hidden="true" alt width="20" height="20"><span class="gt-ellipsis">`;
nameHtml += item.full_name ? html`<span class="search-fullname">${item.full_name}</span>` : item.username;
nameHtml += html`</span>`;
Comment thread
tyroneyeh marked this conversation as resolved.
Outdated
if (selectedUsername.toLowerCase() === item.username.toLowerCase()) selectedUsername = item.username;
processedResults.push({value: item.username, name: nameHtml});
}
Expand Down
Loading