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
Jérome Perrin
gitlab-ce
Commits
2cd9542e
Commit
2cd9542e
authored
Apr 18, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix diff stats sticky bar
parent
ed385e4b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
app/assets/stylesheets/pages/diff.scss
app/assets/stylesheets/pages/diff.scss
+10
-6
app/views/projects/diffs/_diffs.html.haml
app/views/projects/diffs/_diffs.html.haml
+1
-1
app/views/projects/diffs/_stats.html.haml
app/views/projects/diffs/_stats.html.haml
+1
-1
No files found.
app/assets/stylesheets/pages/diff.scss
View file @
2cd9542e
...
...
@@ -604,19 +604,23 @@
top
:
76px
;
}
&
:not
(
.is-stuck
)
.diff-stats-additions-deletions-collapsed
{
display
:
none
;
}
&
.is-stuck
{
padding-top
:
0
;
padding-bottom
:
0
;
border-bottom
:
1px
solid
$white-dark
;
transform
:
translateY
(
16
px
);
transform
:
translateY
(
52
px
);
.diff-stats-additions-deletions-expanded
,
.inline-parallel-buttons
{
display
:
none
;
display
:
none
!
important
;
}
}
}
@include
media-breakpoint-up
(
lg
)
{
&
.is-stuck
{
.diff-stats-additions-deletions-collapsed
{
display
:
block
!
important
;
}
}
}
...
...
app/views/projects/diffs/_diffs.html.haml
View file @
2cd9542e
...
...
@@ -11,7 +11,7 @@
=
link_to
'Expand all'
,
url_for
(
params
.
merge
(
expanded:
1
,
format:
nil
)),
class:
'btn btn-secondary'
-
if
show_whitespace_toggle
-
if
current_controller?
(
:commit
)
=
commit_diff_whitespace_link
(
diffs
.
project
,
@commit
,
class:
'd-none d-sm-block'
)
=
commit_diff_whitespace_link
(
diffs
.
project
,
@commit
,
class:
'd-none d-sm-
inline-
block'
)
-
elsif
current_controller?
(
'projects/merge_requests/diffs'
)
=
diff_merge_request_whitespace_link
(
diffs
.
project
,
@merge_request
,
class:
'd-none d-sm-block'
)
-
elsif
current_controller?
(
:compare
)
...
...
app/views/projects/diffs/_stats.html.haml
View file @
2cd9542e
...
...
@@ -10,7 +10,7 @@
%strong
.cgreen
=
pluralize
(
sum_added_lines
,
'addition'
)
and
%strong
.cred
=
pluralize
(
sum_removed_lines
,
'deletion'
)
.diff-stats-additions-deletions-collapsed.float-right.d-none.d-sm-none
.d-md-block
{
"aria-hidden"
:
"true"
,
"aria-describedby"
:
"diff-stats"
}
.diff-stats-additions-deletions-collapsed.float-right.d-none.d-sm-none
{
"aria-hidden"
:
"true"
,
"aria-describedby"
:
"diff-stats"
}
%strong
.cgreen
<
+
#{
sum_added_lines
}
%strong
.cred
<
...
...
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