diff --git a/app/assets/stylesheets/framework/files.scss b/app/assets/stylesheets/framework/files.scss index db1c8da06d069c3b4a551aa8cf9e684a4db42a9a..c51912b4ac46afd71b73f5416af67bd1473d0f94 100644 --- a/app/assets/stylesheets/framework/files.scss +++ b/app/assets/stylesheets/framework/files.scss @@ -231,37 +231,3 @@ span.idiff { } } } - - -.file-title-flex-parent { - display: flex; - align-items: center; - background-color: $gray-light; - border-bottom: 1px solid $border-color; - padding: 10px $gl-padding; - margin: 0; - border-radius: 3px 3px 0 0; - - > a { - flex: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - color: $gl-text-color; - } - - small { - margin: 0 10px 0 0; - } - - .file-actions { - white-space: nowrap; - - .btn { - padding: 0 10px; - font-size: 13px; - line-height: 28px; - display: inline-block; - } - } -} diff --git a/app/assets/stylesheets/pages/diff.scss b/app/assets/stylesheets/pages/diff.scss index 8b784c2a439054fa8bdf49113824ccb3fedc76cf..96ba7c406344fd40f2d277ab93a6ba142281b95c 100644 --- a/app/assets/stylesheets/pages/diff.scss +++ b/app/assets/stylesheets/pages/diff.scss @@ -37,10 +37,6 @@ .file-title { cursor: pointer; - a:hover { - text-decoration: none; - } - &:hover { background-color: $gray-normal; } diff --git a/app/views/projects/diffs/_file.html.haml b/app/views/projects/diffs/_file.html.haml index 7ab2eb1bce90e15371cbb100c73785d1cf26732d..c37a33bbcd5af4049643c0d9174f37c02d10fab7 100644 --- a/app/views/projects/diffs/_file.html.haml +++ b/app/views/projects/diffs/_file.html.haml @@ -1,5 +1,5 @@ .diff-file.file-holder{ id: file_hash, data: diff_file_html_data(project, diff_file.file_path, diff_commit.id) } - .file-title-flex-parent + .file-title = render "projects/diffs/file_header", diff_file: diff_file, blob: blob, diff_commit: diff_commit, project: project, url: "##{file_hash}" - unless diff_file.submodule? diff --git a/app/views/projects/diffs/_file_header.html.haml b/app/views/projects/diffs/_file_header.html.haml index 1e5ac4ed38c03845188ab9b823235d7f8609031a..90c9a0c6c2b3edb22cd01fba125c07de210b5f95 100644 --- a/app/views/projects/diffs/_file_header.html.haml +++ b/app/views/projects/diffs/_file_header.html.haml @@ -10,13 +10,13 @@ - if diff_file.renamed_file - old_path, new_path = mark_inline_diffs(diff_file.old_path, diff_file.new_path) - %strong.file-title-name.has-tooltip{ data: { title: old_path } } + %strong = old_path → - %strong.file-title-name.has-tooltip{ data: { title: new_path } } + %strong = new_path - else - %strong.file-title-name.has-tooltip{ data: { title: diff_file.new_path } } + %strong = diff_file.new_path - if diff_file.deleted_file deleted diff --git a/changelogs/unreleased/25709-diff-file-overflow.yml b/changelogs/unreleased/25709-diff-file-overflow.yml deleted file mode 100644 index 7d1b2b36ab8ff633a97b466dc30b20720b65875e..0000000000000000000000000000000000000000 --- a/changelogs/unreleased/25709-diff-file-overflow.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: Responsive title in diffs inline, side by side, with and without sidebar -merge_request: 8475 -author: