diff options
author | Phil Hughes <me@iamphill.com> | 2017-11-14 10:36:45 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-11-17 14:51:28 +0000 |
commit | 04fcc7dab5b2c08dc33e9cb62bfe9c712db6ebff (patch) | |
tree | 0fbf66e4f4d1e99182efe3700aa7249529792da1 /app/assets/stylesheets | |
parent | e68ee8af4d981cb7b83fae76c0a94059add495fb (diff) | |
download | gitlab-ce-04fcc7dab5b2c08dc33e9cb62bfe9c712db6ebff.tar.gz |
Improved the design of the changed files dropdown
Closes #36687
Diffstat (limited to 'app/assets/stylesheets')
-rw-r--r-- | app/assets/stylesheets/pages/diff.scss | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/app/assets/stylesheets/pages/diff.scss b/app/assets/stylesheets/pages/diff.scss index bce94e09367..779ba431d85 100644 --- a/app/assets/stylesheets/pages/diff.scss +++ b/app/assets/stylesheets/pages/diff.scss @@ -628,21 +628,45 @@ } .diff-file-changes { - width: 450px; + max-width: 550px; + width: 100%; z-index: 150; @media (min-width: $screen-sm-min) { left: $gl-padding; } - a { + .diff-changed-file { + display: flex; padding-top: 8px; padding-bottom: 8px; + min-width: 0; } - .diff-changed-file { + .diff-file-changed-icon { + margin-top: 2px; + } + + .diff-changed-file-content { display: flex; - align-items: center; + flex-direction: column; + min-width: 0; + } + + .diff-changed-file-name, + .diff-changed-file-path { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + + .diff-changed-file-path { + direction: rtl; + } + + .diff-changed-stats { + margin-left: auto; + white-space: nowrap; } } |