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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
a9c04170
Commit
a9c04170
authored
May 14, 2018
by
Takuya Noguchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove extra spaces from MR discussion notes
parent
ba99dfcd
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
33 deletions
+17
-33
app/assets/javascripts/diffs/components/inline_diff_comment_row.vue
.../javascripts/diffs/components/inline_diff_comment_row.vue
+3
-4
app/assets/javascripts/notes.js
app/assets/javascripts/notes.js
+1
-1
app/assets/javascripts/notes/components/diff_with_note.vue
app/assets/javascripts/notes/components/diff_with_note.vue
+3
-4
app/assets/stylesheets/pages/notes.scss
app/assets/stylesheets/pages/notes.scss
+0
-14
app/views/discussions/_diff_discussion.html.haml
app/views/discussions/_diff_discussion.html.haml
+1
-2
app/views/discussions/_parallel_diff_discussion.html.haml
app/views/discussions/_parallel_diff_discussion.html.haml
+4
-8
changelogs/unreleased/46340-remove-extra-spaces-from-mr-discussion-notes.yml
...ed/46340-remove-extra-spaces-from-mr-discussion-notes.yml
+5
-0
No files found.
app/assets/javascripts/diffs/components/inline_diff_comment_row.vue
View file @
a9c04170
...
@@ -44,10 +44,9 @@ export default {
...
@@ -44,10 +44,9 @@ export default {
class=
"notes_holder"
class=
"notes_holder"
>
>
<td
<td
class=
"notes_line"
class=
"notes_content"
colspan=
"2"
colspan=
"3"
></td>
>
<td
class=
"notes_content"
>
<div
class=
"content"
>
<div
class=
"content"
>
<diff-discussions
<diff-discussions
v-if=
"discussions.length"
v-if=
"discussions.length"
...
...
app/assets/javascripts/notes.js
View file @
a9c04170
...
@@ -1074,7 +1074,7 @@ export default class Notes {
...
@@ -1074,7 +1074,7 @@ export default class Notes {
addForm
=
false
;
addForm
=
false
;
let
lineTypeSelector
=
''
;
let
lineTypeSelector
=
''
;
rowCssToAdd
=
rowCssToAdd
=
'
<tr class="notes_holder js-temp-notes-holder"><td class="notes_
line" colspan="2"></td><td class="notes_content
"><div class="content"></div></td></tr>
'
;
'
<tr class="notes_holder js-temp-notes-holder"><td class="notes_
content" colspan="3
"><div class="content"></div></td></tr>
'
;
// In parallel view, look inside the correct left/right pane
// In parallel view, look inside the correct left/right pane
if
(
this
.
isParallelView
())
{
if
(
this
.
isParallelView
())
{
lineTypeSelector
=
`.
${
lineType
}
`
;
lineTypeSelector
=
`.
${
lineType
}
`
;
...
...
app/assets/javascripts/notes/components/diff_with_note.vue
View file @
a9c04170
...
@@ -148,10 +148,9 @@ export default {
...
@@ -148,10 +148,9 @@ export default {
</tr>
</tr>
<tr
class=
"notes_holder"
>
<tr
class=
"notes_holder"
>
<td
<td
class=
"notes_line"
class=
"notes_content"
colspan=
"2"
colspan=
"3"
></td>
>
<td
class=
"notes_content"
>
<slot></slot>
<slot></slot>
</td>
</td>
</tr>
</tr>
...
...
app/assets/stylesheets/pages/notes.scss
View file @
a9c04170
...
@@ -334,20 +334,6 @@ ul.notes {
...
@@ -334,20 +334,6 @@ ul.notes {
border
:
1px
solid
$white-normal
;
border
:
1px
solid
$white-normal
;
border-left
:
0
;
border-left
:
0
;
&
.notes_line
{
vertical-align
:
middle
;
text-align
:
center
;
padding
:
10px
0
;
background
:
$gray-light
;
color
:
$text-color
;
}
&
.notes_line2
{
text-align
:
center
;
padding
:
10px
0
;
border-left
:
1px
solid
$note-line2-border
!
important
;
}
&
.notes_content
{
&
.notes_content
{
background-color
:
$gray-light
;
background-color
:
$gray-light
;
border-width
:
1px
0
;
border-width
:
1px
0
;
...
...
app/views/discussions/_diff_discussion.html.haml
View file @
a9c04170
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
-# Text diff discussions
-# Text diff discussions
-
expanded
=
local_assigns
.
fetch
(
:expanded
,
true
)
-
expanded
=
local_assigns
.
fetch
(
:expanded
,
true
)
%tr
.notes_holder
{
class:
(
'hide'
unless
expanded
)
}
%tr
.notes_holder
{
class:
(
'hide'
unless
expanded
)
}
%td
.notes_line
{
colspan:
2
}
%td
.notes_content
{
colspan:
3
}
%td
.notes_content
.content
{
class:
(
'hide'
unless
expanded
)
}
.content
{
class:
(
'hide'
unless
expanded
)
}
=
render
partial:
"discussions/notes"
,
collection:
discussions
,
as: :discussion
,
locals:
{
disable_collapse_class:
true
}
=
render
partial:
"discussions/notes"
,
collection:
discussions
,
as: :discussion
,
locals:
{
disable_collapse_class:
true
}
app/views/discussions/_parallel_diff_discussion.html.haml
View file @
a9c04170
-
expanded
=
[
*
discussions_left
,
*
discussions_right
].
any?
(
&
:expanded?
)
-
expanded
=
[
*
discussions_left
,
*
discussions_right
].
any?
(
&
:expanded?
)
%tr
.notes_holder
{
class:
(
'hide'
unless
expanded
)
}
%tr
.notes_holder
{
class:
(
'hide'
unless
expanded
)
}
-
if
discussions_left
-
if
discussions_left
%td
.notes_line.old
%td
.notes_content.parallel.old
{
colspan:
2
}
%td
.notes_content.parallel.old
.content
{
class:
(
'hide'
unless
discussions_left
.
any?
(
&
:expanded?
))
}
.content
{
class:
(
'hide'
unless
discussions_left
.
any?
(
&
:expanded?
))
}
=
render
partial:
"discussions/notes"
,
collection:
discussions_left
,
as: :discussion
,
line_type:
'old'
,
locals:
{
disable_collapse_class:
true
}
=
render
partial:
"discussions/notes"
,
collection:
discussions_left
,
as: :discussion
,
line_type:
'old'
,
locals:
{
disable_collapse_class:
true
}
-
else
-
else
%td
.notes_line.old
=
(
""
)
%td
.notes_content.parallel.old
{
colspan:
2
}
%td
.notes_content.parallel.old
.content
.content
-
if
discussions_right
-
if
discussions_right
%td
.notes_line.new
%td
.notes_content.parallel.new
{
colspan:
2
}
%td
.notes_content.parallel.new
.content
{
class:
(
'hide'
unless
discussions_right
.
any?
(
&
:expanded?
))
}
.content
{
class:
(
'hide'
unless
discussions_right
.
any?
(
&
:expanded?
))
}
=
render
partial:
"discussions/notes"
,
collection:
discussions_right
,
as: :discussion
,
line_type:
'new'
,
locals:
{
disable_collapse_class:
true
}
=
render
partial:
"discussions/notes"
,
collection:
discussions_right
,
as: :discussion
,
line_type:
'new'
,
locals:
{
disable_collapse_class:
true
}
-
else
-
else
%td
.notes_line.new
=
(
""
)
%td
.notes_content.parallel.new
{
colspan:
2
}
%td
.notes_content.parallel.new
.content
.content
changelogs/unreleased/46340-remove-extra-spaces-from-mr-discussion-notes.yml
0 → 100644
View file @
a9c04170
---
title
:
Remove extra spaces from MR discussion notes
merge_request
:
18946
author
:
Takuya Noguchi
type
:
other
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