BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
2352a392
Commit
2352a392
authored
Feb 08, 2017
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align file header items while keeping collapse functionality
parent
b57027f2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
files.scss
app/assets/stylesheets/framework/files.scss
+12
-2
diff.scss
app/assets/stylesheets/pages/diff.scss
+2
-1
_file.html.haml
app/views/projects/diffs/_file.html.haml
+2
-1
No files found.
app/assets/stylesheets/framework/files.scss
View file @
2352a392
...
@@ -236,17 +236,27 @@ span.idiff {
...
@@ -236,17 +236,27 @@ span.idiff {
.file-title-flex-parent
{
.file-title-flex-parent
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:space-between
;
background-color
:
$gray-light
;
background-color
:
$gray-light
;
border-bottom
:
1px
solid
$border-color
;
border-bottom
:
1px
solid
$border-color
;
padding
:
10px
$gl-padding
;
padding
:
10px
$gl-padding
;
margin
:
0
;
margin
:
0
;
border-radius
:
3px
3px
0
0
;
border-radius
:
3px
3px
0
0
;
>
a
{
.file-header-content
{
flex
:
1
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
padding-right
:
30px
;
position
:
relative
;
}
.btn-clipboard
{
position
:
absolute
;
right
:
0
;
}
a
{
color
:
$gl-text-color
;
color
:
$gl-text-color
;
}
}
...
...
app/assets/stylesheets/pages/diff.scss
View file @
2352a392
...
@@ -34,7 +34,8 @@
...
@@ -34,7 +34,8 @@
}
}
}
}
.file-title
{
.file-title
,
.file-title-flex-parent
{
cursor
:
pointer
;
cursor
:
pointer
;
a
:hover
{
a
:hover
{
...
...
app/views/projects/diffs/_file.html.haml
View file @
2352a392
-
environment
=
local_assigns
.
fetch
(
:environment
,
nil
)
-
environment
=
local_assigns
.
fetch
(
:environment
,
nil
)
.diff-file.file-holder
{
id:
file_hash
,
data:
diff_file_html_data
(
project
,
diff_file
.
file_path
,
diff_commit
.
id
)
}
.diff-file.file-holder
{
id:
file_hash
,
data:
diff_file_html_data
(
project
,
diff_file
.
file_path
,
diff_commit
.
id
)
}
.js-file-title.file-title-flex-parent
.js-file-title.file-title-flex-parent
=
render
"projects/diffs/file_header"
,
diff_file:
diff_file
,
blob:
blob
,
diff_commit:
diff_commit
,
project:
project
,
url:
"#
#{
file_hash
}
"
.file-header-content
=
render
"projects/diffs/file_header"
,
diff_file:
diff_file
,
blob:
blob
,
diff_commit:
diff_commit
,
project:
project
,
url:
"#
#{
file_hash
}
"
-
unless
diff_file
.
submodule?
-
unless
diff_file
.
submodule?
.file-actions.hidden-xs
.file-actions.hidden-xs
...
...
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