diff options
author | Kjel Delaey <kjel_delaey@hotmail.com> | 2015-11-04 15:55:19 +0100 |
---|---|---|
committer | Kjel Delaey <kjel_delaey@hotmail.com> | 2015-11-04 15:55:19 +0100 |
commit | 8508be74d2063bb86e39d1cc8667e8adb9dfe63e (patch) | |
tree | 790655df21735173d72436956a7fe552cf46c597 | |
parent | 6d91ee0095d2491ab5d9862d5deba22282d1412d (diff) | |
download | gitlab-ce-8508be74d2063bb86e39d1cc8667e8adb9dfe63e.tar.gz |
Style inline event items with titles containing long words properly..
On a tablet in portrait mode with a width of 768px the event-title isn't
aligned properly when the title contains a long string. This also
happens when resizing your browser viewport on a desktop.
Example string:
Administrator pushed new branch feature-branch-with-a-very-long-name at
Gitlab Org / Gitlab Test
In the UI it would look like the example below:
----------
| |
| AVATAR | less than a minute ago
| |
----------
Administrator pushed new branch feature-branch-with-a-very-long-name at...
-rw-r--r-- | app/assets/stylesheets/pages/events.scss | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/stylesheets/pages/events.scss b/app/assets/stylesheets/pages/events.scss index dfb901652bf..d2ca106cc8d 100644 --- a/app/assets/stylesheets/pages/events.scss +++ b/app/assets/stylesheets/pages/events.scss @@ -11,9 +11,12 @@ color: #7f8fa4; &.event-inline { + padding-left: $gl-padding + $gl-avatar-size; + .avatar { position: relative; top: -2px; + margin-left: -$gl-avatar-size; } .event-title { @@ -155,6 +158,10 @@ @media (max-width: $screen-xs-max) { .event-item { + &.event-inline { + padding-left: $gl-padding; + } + .event-title { white-space: normal; overflow: visible; |