From 69f0daf7d9ecc45386e99fedd99d56624c372fa1 Mon Sep 17 00:00:00 2001 From: Adriel Santiago Date: Tue, 7 Aug 2018 23:23:23 +0000 Subject: Resolve "Group dashboard > Line height is too tall for group names" --- .../javascripts/groups/components/group_item.vue | 75 ++++++++++++---------- app/assets/stylesheets/framework/common.scss | 3 + app/assets/stylesheets/pages/groups.scss | 52 +++++++++------ 3 files changed, 75 insertions(+), 55 deletions(-) (limited to 'app/assets') diff --git a/app/assets/javascripts/groups/components/group_item.vue b/app/assets/javascripts/groups/components/group_item.vue index efbf2e3a295..2b9e2a929fc 100644 --- a/app/assets/javascripts/groups/components/group_item.vue +++ b/app/assets/javascripts/groups/components/group_item.vue @@ -78,17 +78,10 @@ export default { >
- - + class="group-row-contents d-flex justify-content-end align-items-center" + > + +
a { - width: 100%; - text-decoration: none; + .group-text { + min-width: 0; // allows for truncated text within flex children + } + + .avatar-container { + flex-shrink: 0; + + > a { + width: 100%; + text-decoration: none; + } } &.has-more-items { @@ -401,9 +408,18 @@ padding: 20px 10px; } + .description { + p { + @include str-truncated; + + max-width: none; + } + } + .stats { position: relative; - line-height: 46px; + line-height: normal; + flex-shrink: 0; > span { display: inline-flex; @@ -422,14 +438,20 @@ } .controls { - margin-left: 5px; + flex-shrink: 0; > .btn { - margin-right: $btn-margin-5; + margin: 0 0 0 $btn-margin-5; } } } + @include media-breakpoint-down(xs) { + .group-stats { + display: none; + } + } + .project-row-contents .stats { line-height: inherit; @@ -451,18 +473,6 @@ } } -ul.group-list-tree { - li.group-row { - > .group-row-contents .title { - line-height: $list-text-height; - } - - &.has-description > .group-row-contents .title { - line-height: inherit; - } - } -} - .js-groups-list-holder { .groups-list-loading { font-size: 34px; -- cgit v1.2.1