diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-02-12 17:51:03 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-02-12 17:51:56 +0000 |
commit | 2bb395eeb0b6efc4d0c6f38b4ec48eaa7f65a64d (patch) | |
tree | 82a27e6e1719bf0b76b2169d085a3d1209b7cfe3 | |
parent | 5e95296278a629df317d769ae70a3bb9513a64cd (diff) | |
download | gitlab-ce-28032-tooltips-file-name.tar.gz |
Adds container to tooltip in order to make it work with overflow:hidden in parent element28032-tooltips-file-name
-rw-r--r-- | app/views/projects/diffs/_file_header.html.haml | 6 | ||||
-rw-r--r-- | changelogs/unreleased/28032-tooltips-file-name.yml | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/app/views/projects/diffs/_file_header.html.haml b/app/views/projects/diffs/_file_header.html.haml index 5b09b6907ab..1dbfe830d52 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.file-title-name.has-tooltip{ data: { title: old_path, container: 'body' } } = old_path → - %strong.file-title-name.has-tooltip{ data: { title: new_path } } + %strong.file-title-name.has-tooltip{ data: { title: new_path, container: 'body' } } = new_path - else - %strong.file-title-name.has-tooltip{ data: { title: diff_file.new_path } } + %strong.file-title-name.has-tooltip{ data: { title: diff_file.new_path, container: 'body' } } = diff_file.new_path - if diff_file.deleted_file deleted diff --git a/changelogs/unreleased/28032-tooltips-file-name.yml b/changelogs/unreleased/28032-tooltips-file-name.yml new file mode 100644 index 00000000000..9fe11e7c2b6 --- /dev/null +++ b/changelogs/unreleased/28032-tooltips-file-name.yml @@ -0,0 +1,5 @@ +--- +title: Adds container to tooltip in order to make it work with overflow:hidden in + parent element +merge_request: +author: |