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
da9c55c6
Commit
da9c55c6
authored
Jun 05, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
a5e3ddd6
df549eb2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
9 deletions
+22
-9
app/assets/javascripts/diffs/store/actions.js
app/assets/javascripts/diffs/store/actions.js
+2
-1
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+1
-0
app/assets/stylesheets/pages/events.scss
app/assets/stylesheets/pages/events.scss
+3
-3
changelogs/unreleased/50106-hide-whitespace-changes.yml
changelogs/unreleased/50106-hide-whitespace-changes.yml
+5
-0
changelogs/unreleased/55253-activity-feed-ui-enhance-line-height.yml
...unreleased/55253-activity-feed-ui-enhance-line-height.yml
+5
-0
spec/javascripts/diffs/store/actions_spec.js
spec/javascripts/diffs/store/actions_spec.js
+6
-5
No files found.
app/assets/javascripts/diffs/store/actions.js
View file @
da9c55c6
...
...
@@ -211,11 +211,12 @@ export const scrollToLineIfNeededParallel = (_, line) => {
}
};
export
const
loadCollapsedDiff
=
({
commit
,
getters
},
file
)
=>
export
const
loadCollapsedDiff
=
({
commit
,
getters
,
state
},
file
)
=>
axios
.
get
(
file
.
load_collapsed_diff_url
,
{
params
:
{
commit_id
:
getters
.
commitId
,
w
:
state
.
showWhitespace
?
'
0
'
:
'
1
'
,
},
})
.
then
(
res
=>
{
...
...
app/assets/stylesheets/framework/variables.scss
View file @
da9c55c6
...
...
@@ -381,6 +381,7 @@ $breadcrumb-min-height: 48px;
$home-panel-title-row-height
:
64px
;
$home-panel-avatar-mobile-size
:
24px
;
$gl-line-height
:
16px
;
$gl-line-height-20
:
20px
;
$gl-line-height-24
:
24px
;
$gl-line-height-14
:
14px
;
...
...
app/assets/stylesheets/pages/events.scss
View file @
da9c55c6
...
...
@@ -8,7 +8,7 @@
border-bottom
:
1px
solid
$white-normal
;
color
:
$gl-text-color-secondary
;
position
:
relative
;
line-height
:
$gl-line-height
;
line-height
:
$gl-line-height
-20
;
.system-note-image
{
position
:
absolute
;
...
...
@@ -48,7 +48,7 @@
}
.event-user-info
{
margin-bottom
:
$gl-padding-
8
;
margin-bottom
:
$gl-padding-
4
;
.author_name
{
a
{
...
...
@@ -67,7 +67,7 @@
}
.event-body
{
margin-top
:
$gl-padding-
8
;
margin-top
:
$gl-padding-
4
;
margin-right
:
174px
;
color
:
$gl-text-color
;
...
...
changelogs/unreleased/50106-hide-whitespace-changes.yml
0 → 100644
View file @
da9c55c6
---
title
:
Fix whitespace changes visibility when the related file was initially collapsed
merge_request
:
28950
author
:
Ondřej Budai
type
:
fixed
changelogs/unreleased/55253-activity-feed-ui-enhance-line-height.yml
0 → 100644
View file @
da9c55c6
---
title
:
Enhance line-height of Activity feed UI
merge_request
:
28856
author
:
Jacopo Beschi @jacopo-beschi
type
:
changed
spec/javascripts/diffs/store/actions_spec.js
View file @
da9c55c6
...
...
@@ -396,6 +396,7 @@ describe('DiffsStoreActions', () => {
});
describe
(
'
loadCollapsedDiff
'
,
()
=>
{
const
state
=
{
showWhitespace
:
true
};
it
(
'
should fetch data and call mutation with response and the give parameter
'
,
done
=>
{
const
file
=
{
hash
:
123
,
load_collapsed_diff_url
:
'
/load/collapsed/diff/url
'
};
const
data
=
{
hash
:
123
,
parallelDiffLines
:
[{
lineCode
:
1
}]
};
...
...
@@ -403,7 +404,7 @@ describe('DiffsStoreActions', () => {
const
commit
=
jasmine
.
createSpy
(
'
commit
'
);
mock
.
onGet
(
file
.
loadCollapsedDiffUrl
).
reply
(
200
,
data
);
loadCollapsedDiff
({
commit
,
getters
:
{
commitId
:
null
}
},
file
)
loadCollapsedDiff
({
commit
,
getters
:
{
commitId
:
null
}
,
state
},
file
)
.
then
(()
=>
{
expect
(
commit
).
toHaveBeenCalledWith
(
types
.
ADD_COLLAPSED_DIFFS
,
{
file
,
data
});
...
...
@@ -421,10 +422,10 @@ describe('DiffsStoreActions', () => {
spyOn
(
axios
,
'
get
'
).
and
.
returnValue
(
Promise
.
resolve
({
data
:
{}
}));
loadCollapsedDiff
({
commit
()
{},
getters
},
file
);
loadCollapsedDiff
({
commit
()
{},
getters
,
state
},
file
);
expect
(
axios
.
get
).
toHaveBeenCalledWith
(
file
.
load_collapsed_diff_url
,
{
params
:
{
commit_id
:
null
},
params
:
{
commit_id
:
null
,
w
:
'
0
'
},
});
});
...
...
@@ -436,10 +437,10 @@ describe('DiffsStoreActions', () => {
spyOn
(
axios
,
'
get
'
).
and
.
returnValue
(
Promise
.
resolve
({
data
:
{}
}));
loadCollapsedDiff
({
commit
()
{},
getters
},
file
);
loadCollapsedDiff
({
commit
()
{},
getters
,
state
},
file
);
expect
(
axios
.
get
).
toHaveBeenCalledWith
(
file
.
load_collapsed_diff_url
,
{
params
:
{
commit_id
:
'
123
'
},
params
:
{
commit_id
:
'
123
'
,
w
:
'
0
'
},
});
});
});
...
...
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