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
743b2a9b
Commit
743b2a9b
authored
Jan 03, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
fd8e2d1e
0e20c8eb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
16 deletions
+24
-16
app/assets/javascripts/vue_shared/components/user_avatar/user_avatar_image.vue
...s/vue_shared/components/user_avatar/user_avatar_image.vue
+1
-0
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+10
-5
changelogs/unreleased/tz-user-popover-follow-up.yml
changelogs/unreleased/tz-user-popover-follow-up.yml
+4
-0
spec/javascripts/user_popovers_spec.js
spec/javascripts/user_popovers_spec.js
+5
-6
spec/javascripts/vue_shared/components/user_popover/user_popover_spec.js
...s/vue_shared/components/user_popover/user_popover_spec.js
+4
-5
No files found.
app/assets/javascripts/vue_shared/components/user_avatar/user_avatar_image.vue
View file @
743b2a9b
...
...
@@ -67,6 +67,7 @@ export default {
// In both cases we should render the defaultAvatarUrl
sanitizedSource
()
{
let
baseSrc
=
this
.
imgSrc
===
''
||
this
.
imgSrc
===
null
?
defaultAvatarUrl
:
this
.
imgSrc
;
// Only adds the width to the URL if its not a base64 data image
if
(
!
baseSrc
.
startsWith
(
'
data:
'
)
&&
!
baseSrc
.
includes
(
'
?
'
))
baseSrc
+=
`?width=
${
this
.
size
}
`
;
return
baseSrc
;
},
...
...
app/assets/stylesheets/framework/variables.scss
View file @
743b2a9b
...
...
@@ -33,6 +33,15 @@ $gray-dark: darken($gray-light, $darken-dark-factor);
$gray-darker
:
#eee
;
$gray-darkest
:
#c4c4c4
;
$black
:
#000
;
$black-transparent
:
rgba
(
0
,
0
,
0
,
0
.3
);
$almost-black
:
#242424
;
$t-gray-a-02
:
rgba
(
$black
,
0
.02
);
$t-gray-a-04
:
rgba
(
$black
,
0
.04
);
$t-gray-a-06
:
rgba
(
$black
,
0
.06
);
$t-gray-a-08
:
rgba
(
$black
,
0
.08
);
$gl-gray-100
:
#dddddd
;
$gl-gray-200
:
#cccccc
;
$gl-gray-350
:
#aaaaaa
;
...
...
@@ -171,11 +180,6 @@ $theme-light-red-500: #c24b38;
$theme-light-red-600
:
#b03927
;
$theme-light-red-700
:
#a62e21
;
$black
:
#000
;
$black-transparent
:
rgba
(
0
,
0
,
0
,
0
.3
);
$shadow-color
:
rgba
(
$black
,
0
.1
);
$almost-black
:
#242424
;
$border-white-light
:
darken
(
$white-light
,
$darken-border-factor
);
$border-white-normal
:
darken
(
$white-normal
,
$darken-border-factor
);
...
...
@@ -188,6 +192,7 @@ $border-gray-dark: darken($white-normal, $darken-border-factor);
* UI elements
*/
$border-color
:
#e5e5e5
;
$shadow-color
:
$t-gray-a-08
;
$well-expand-item
:
#e8f2f7
;
$well-inner-border
:
#eef0f2
;
$well-light-border
:
#f1f1f1
;
...
...
changelogs/unreleased/tz-user-popover-follow-up.yml
0 → 100644
View file @
743b2a9b
title
:
Changed Userpopover Fixtures and shadow color
merge_request
:
23768
author
:
type
:
other
spec/javascripts/user_popovers_spec.js
View file @
743b2a9b
...
...
@@ -2,6 +2,9 @@ import initUserPopovers from '~/user_popovers';
import
UsersCache
from
'
~/lib/utils/users_cache
'
;
describe
(
'
User Popovers
'
,
()
=>
{
const
fixtureTemplate
=
'
merge_requests/diff_comment.html.raw
'
;
preloadFixtures
(
fixtureTemplate
);
const
selector
=
'
.js-user-link
'
;
const
dummyUser
=
{
name
:
'
root
'
};
...
...
@@ -15,11 +18,7 @@ describe('User Popovers', () => {
};
beforeEach
(()
=>
{
setFixtures
(
`
<a href="/root" data-user-id="1" class="js-user-link" data-username="root" data-original-title="" title="">
Root
</a>
`
);
loadFixtures
(
fixtureTemplate
);
const
usersCacheSpy
=
()
=>
Promise
.
resolve
(
dummyUser
);
spyOn
(
UsersCache
,
'
retrieveById
'
).
and
.
callFake
(
userId
=>
usersCacheSpy
(
userId
));
...
...
@@ -39,7 +38,7 @@ describe('User Popovers', () => {
expect
(
shownPopover
).
not
.
toBeNull
();
expect
(
shownPopover
.
innerHTML
).
toContain
(
dummyUser
.
name
);
expect
(
UsersCache
.
retrieveById
).
toHaveBeenCalledWith
(
'
1
'
);
expect
(
UsersCache
.
retrieveById
).
toHaveBeenCalledWith
(
'
58
'
);
triggerEvent
(
'
mouseleave
'
,
document
.
querySelector
(
selector
));
...
...
spec/javascripts/vue_shared/components/user_popover/user_popover_spec.js
View file @
743b2a9b
...
...
@@ -17,14 +17,13 @@ const DEFAULT_PROPS = {
const
UserPopover
=
Vue
.
extend
(
userPopover
);
describe
(
'
User Popover Component
'
,
()
=>
{
const
fixtureTemplate
=
'
merge_requests/diff_comment.html.raw
'
;
preloadFixtures
(
fixtureTemplate
);
let
vm
;
beforeEach
(()
=>
{
setFixtures
(
`
<a href="/root" data-user-id="1" class="js-user-link" title="testuser">
Root
</a>
`
);
loadFixtures
(
fixtureTemplate
);
});
afterEach
(()
=>
{
...
...
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