From 65df233e8ac52af6f0d052ac22a8e82b68e85335 Mon Sep 17 00:00:00 2001 From: Svallinn <41585298+Svallinn@users.noreply.github.com> Date: Tue, 15 Jun 2021 03:08:57 +0100 Subject: [PATCH] Profile+Everywhere: Tweak CSS on profile related components This commit improves the centering of profile bubble initials and tweaks other parts of profile related components. --- .../ft-profile-bubble/ft-profile-bubble.css | 24 +++++++++---------- .../ft-profile-bubble/ft-profile-bubble.vue | 4 ++-- .../ft-profile-edit/ft-profile-edit.css | 8 +++---- .../ft-profile-edit/ft-profile-edit.vue | 4 ++-- .../ft-profile-selector.css | 8 +++---- .../ft-profile-selector.vue | 8 +++---- 6 files changed, 27 insertions(+), 29 deletions(-) diff --git a/src/renderer/components/ft-profile-bubble/ft-profile-bubble.css b/src/renderer/components/ft-profile-bubble/ft-profile-bubble.css index 1208867b..9f832bd0 100644 --- a/src/renderer/components/ft-profile-bubble/ft-profile-bubble.css +++ b/src/renderer/components/ft-profile-bubble/ft-profile-bubble.css @@ -1,7 +1,7 @@ .bubblePadding { width: 100px; height: 115px; - padding: 10px; + padding: 10px 10px 30px 10px; cursor: pointer; -webkit-transition: background 0.2s ease-out; -moz-transition: background 0.2s ease-out; @@ -17,25 +17,23 @@ } .bubble { - width: 50px; - height: 50px; - margin-top: 20px; - margin-bottom: 5px; - margin-left: 25px; - border-radius: 200px 200px 200px 200px; - -webkit-border-radius: 200px 200px 200px 200px; + width: 70px; + height: 70px; + margin: 20px auto 5px auto; + border-radius: 50%; + -webkit-border-radius: 50%; } .initial { - font-size: 25px; + font-size: 35px; + line-height: 1em; text-align: center; - position: relative; - top: 12px; + padding: 17.5px 0; } .profileName { - font-size: 13px; - height: 60px; + font-size: 14px; + line-height: 1.5em; overflow: hidden; text-align: center; } diff --git a/src/renderer/components/ft-profile-bubble/ft-profile-bubble.vue b/src/renderer/components/ft-profile-bubble/ft-profile-bubble.vue index 27ff2e01..6879570d 100644 --- a/src/renderer/components/ft-profile-bubble/ft-profile-bubble.vue +++ b/src/renderer/components/ft-profile-bubble/ft-profile-bubble.vue @@ -7,9 +7,9 @@ class="bubble" :style="{ background: backgroundColor, color: textColor }" > -
+
{{ profileInitial }} -
+{{ profileInitials[activeProfile] }} -
+{{ profileInitials[index] }} -
+