Commit 2352a392 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Align file header items while keeping collapse functionality

parent b57027f2
...@@ -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;
} }
......
...@@ -34,7 +34,8 @@ ...@@ -34,7 +34,8 @@
} }
} }
.file-title { .file-title,
.file-title-flex-parent {
cursor: pointer; cursor: pointer;
a:hover { a:hover {
......
- 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
.file-header-content
= render "projects/diffs/file_header", diff_file: diff_file, blob: blob, diff_commit: diff_commit, project: project, url: "##{file_hash}" = 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?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment