From: Chocobozzz Date: Thu, 14 Feb 2019 10:32:18 +0000 (+0100) Subject: Fix too long name in menu X-Git-Tag: v1.2.1~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d4804eead75bfaf41c3150d19e380ff4229d6226;p=oweals%2Fpeertube.git Fix too long name in menu --- diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.html index aa5bfa9c9..1e532ec13 100644 --- a/client/src/app/menu/menu.component.html +++ b/client/src/app/menu/menu.component.html @@ -5,8 +5,8 @@
- {{ user.account?.displayName }} -
{{ user.username }}
+ {{ user.account?.displayName }} +
{{ user.username }}
diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scss index f30b89413..69704674a 100644 --- a/client/src/app/menu/menu.component.scss +++ b/client/src/app/menu/menu.component.scss @@ -41,8 +41,11 @@ menu { .logged-in-info { flex-grow: 1; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; - .logged-in-username { + .logged-in-display-name { font-size: 16px; font-weight: $font-semibold; color: var(--menuForegroundColor); @@ -51,7 +54,7 @@ menu { @include disable-default-a-behaviour; } - .logged-in-email { + .logged-in-username { font-size: 13px; color: #C6C6C6; white-space: nowrap;