From d13f36a2ad086b86466d64015378976114d4cc62 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 9 Jan 2019 15:36:09 +0300 Subject: [PATCH] fixes #265 and also that thin line below gradient on chrome (UGH) --- .../user_card_content/user_card_content.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue index 3804302be3..068ed69129 100644 --- a/src/components/user_card_content/user_card_content.vue +++ b/src/components/user_card_content/user_card_content.vue @@ -153,6 +153,10 @@ background: linear-gradient(to bottom, rgba(0, 0, 0, 0), $fallback--bg 80%); background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--bg, $fallback--bg) 80%); + /* This fixes chrome's pixel rounding glitch */ + margin-bottom: -1px; + padding-bottom: 1px; + .profile-bio { text-align: center; } @@ -226,10 +230,11 @@ } } - .user-name{ + .user-name { text-overflow: ellipsis; overflow: hidden; - flex: 1 0 auto; + flex: 1 1 auto; + margin-right: 1em; } .user-screen-name { @@ -245,6 +250,10 @@ .dailyAvg { min-width: 1px; flex: 0 0 auto; + margin-left: 1em; + font-size: 0.7em; + color: $fallback--text; + color: var(--text, $fallback--text); } .handle { @@ -381,11 +390,6 @@ } } -.dailyAvg { - margin-left: 1em; - font-size: 0.7em; - color: #CCC; -} .floater { }