Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0952e906
Commit
0952e906
authored
Nov 07, 2018
by
Jacques Erasmus
Committed by
Fatih Acet
Nov 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix miss-aligned approvers dropdown (port to EE)
parent
5c35ae09
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
12 deletions
+22
-12
app/assets/javascripts/users_select.js
app/assets/javascripts/users_select.js
+16
-12
app/assets/stylesheets/framework/selects.scss
app/assets/stylesheets/framework/selects.scss
+1
-0
changelogs/unreleased/6500-fix-misaligned-approvers-dropdown.yml
...ogs/unreleased/6500-fix-misaligned-approvers-dropdown.yml
+5
-0
No files found.
app/assets/javascripts/users_select.js
View file @
0952e906
/* eslint-disable func-names, one-var, no-var, prefer-rest-params, vars-on-top, prefer-arrow-callback, consistent-return, object-shorthand, no-shadow, no-unused-vars, no-else-return, no-self-compare, prefer-template, no-unused-expressions, yoda, prefer-spread,
no-void,
camelcase, no-param-reassign */
/* eslint-disable func-names, one-var, no-var, prefer-rest-params, vars-on-top, prefer-arrow-callback, consistent-return, object-shorthand, no-shadow, no-unused-vars, no-else-return, no-self-compare, prefer-template, no-unused-expressions, yoda, prefer-spread, camelcase, no-param-reassign */
/* global Issuable */
/* global emitSidebarEvent */
...
...
@@ -696,17 +696,21 @@ UsersSelect.prototype.formatResult = function(user) {
}
else
{
avatar
=
gon
.
default_avatar_url
;
}
return
(
"
<div class='user-result
"
+
(
!
user
.
username
?
'
no-username
'
:
void
0
)
+
"
'> <div class='user-image'><img class='avatar avatar-inline s32' src='
"
+
avatar
+
"
'></div> <div class='user-name dropdown-menu-user-full-name'>
"
+
_
.
escape
(
user
.
name
)
+
"
</div> <div class='user-username dropdown-menu-user-username'>
"
+
(
!
user
.
invite
?
'
@
'
+
_
.
escape
(
user
.
username
)
:
''
)
+
'
</div> </div>
'
);
return
`
<div class='user-result'>
<div class='user-image'>
<img class='avatar avatar-inline s32' src='
${
avatar
}
'>
</div>
<div class='user-info'>
<div class='user-name dropdown-menu-user-full-name'>
${
_
.
escape
(
user
.
name
)}
</div>
<div class='user-username dropdown-menu-user-username text-secondary'>
${
!
user
.
invite
?
'
@
'
+
_
.
escape
(
user
.
username
)
:
''
}
</div>
</div>
</div>
`
;
};
UsersSelect
.
prototype
.
formatSelection
=
function
(
user
)
{
...
...
app/assets/stylesheets/framework/selects.scss
View file @
0952e906
...
...
@@ -254,6 +254,7 @@
.user-result
{
min-height
:
24px
;
display
:
flex
;
align-items
:
center
;
.user-image
{
float
:
left
;
...
...
changelogs/unreleased/6500-fix-misaligned-approvers-dropdown.yml
0 → 100644
View file @
0952e906
---
title
:
Fix misaligned approvers dropdown
merge_request
:
22832
author
:
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment