diff options
author | Rajat Jain <rjain@gitlab.com> | 2019-04-15 15:11:39 +0300 |
---|---|---|
committer | Rajat Jain <rjain@gitlab.com> | 2019-04-16 14:08:49 +0300 |
commit | 17a48fadee10fe476c1be54c6df0913ed2af2791 (patch) | |
tree | aeb20c5d77b75a09a53bd6c8310c1f0588e472fb /app/assets/stylesheets/pages/labels.scss | |
parent | 0a99e0220d9371423039f05f700af3675b26624f (diff) |
Hide overflow in scoped labels
Scoped labels overflew in all the places because of
lack of restriction on `max-width`. This commit introduces
the same limits on width we have inplace for regular labels
Diffstat (limited to 'app/assets/stylesheets/pages/labels.scss')
-rw-r--r-- | app/assets/stylesheets/pages/labels.scss | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/assets/stylesheets/pages/labels.scss b/app/assets/stylesheets/pages/labels.scss index e7fd7fab32b..d17d20bb683 100644 --- a/app/assets/stylesheets/pages/labels.scss +++ b/app/assets/stylesheets/pages/labels.scss @@ -408,12 +408,21 @@ } .scoped-label-wrapper { + max-width: 100%; + vertical-align: top; + + .badge { + text-overflow: ellipsis; + overflow-x: hidden; + } + &.label-link .color-label a { color: inherit; } .color-label { padding-right: $gl-padding-24; + max-width: 100%; } .scoped-label { @@ -438,3 +447,13 @@ } } } + +// Don't hide the overflow in system messages +.system-note-message, +.issuable-detail { + .scoped-label-wrapper { + .badge { + overflow: initial; + } + } +} |