From ef80c66cea945d315336251dbb5efcb06c64189d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 20 Feb 2019 15:52:03 +0100 Subject: Refactor ellipsis CSS --- client/src/app/menu/menu.component.scss | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'client/src/app/menu') diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scss index 69704674a..137df6fc1 100644 --- a/client/src/app/menu/menu.component.scss +++ b/client/src/app/menu/menu.component.scss @@ -10,12 +10,12 @@ } menu { + @include ellipsis; + background-color: var(--menuBackgroundColor); margin: 0; padding: 0; height: 100%; - white-space: nowrap; - text-overflow: ellipsis; overflow: auto; color: var(--menuForegroundColor); display: flex; @@ -40,10 +40,9 @@ menu { margin-bottom: 35px; .logged-in-info { + @include ellipsis; + flex-grow: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; .logged-in-display-name { font-size: 16px; @@ -55,11 +54,10 @@ menu { } .logged-in-username { + @include ellipsis; + font-size: 13px; color: #C6C6C6; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; max-width: 140px; } } -- cgit v1.2.3