diff options
author | Vicary Archangel <vicary.archangel@member.mensa.org> | 2018-09-07 20:46:38 +0300 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.m.gray@gmail.com> | 2018-09-07 20:46:38 +0300 |
commit | c7260b7d784652d9ebfda75d9cd291cc31e4b598 (patch) | |
tree | f978d90626893854cb0457eb5bc7edbfb836ba3f | |
parent | 044fe6b3c9a66dbd17eb7d3d302afc86e5042ea0 (diff) |
Vertically centres landscape avatars those cannot fill up parent height.
-rw-r--r-- | app/assets/javascripts/groups/components/group_item.vue | 2 | ||||
-rw-r--r-- | app/assets/stylesheets/framework/avatar.scss | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/groups/components/group_item.vue b/app/assets/javascripts/groups/components/group_item.vue index 154ad2ea607..44d6fa26914 100644 --- a/app/assets/javascripts/groups/components/group_item.vue +++ b/app/assets/javascripts/groups/components/group_item.vue @@ -100,7 +100,7 @@ export default { </div> <div :class="{ 'content-loading': group.isChildrenLoading }" - class="avatar-container s24 d-none d-sm-block" + class="avatar-container s24 d-none d-sm-flex" > <a :href="group.relativePath" diff --git a/app/assets/stylesheets/framework/avatar.scss b/app/assets/stylesheets/framework/avatar.scss index 9dd0384a228..a1349c61542 100644 --- a/app/assets/stylesheets/framework/avatar.scss +++ b/app/assets/stylesheets/framework/avatar.scss @@ -104,6 +104,7 @@ a { width: 100%; + height: 100%; display: flex; } |