From 8a44f8354e614ee24f4b749c4e1a3cf1fde2b4d4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 20 Feb 2018 14:16:32 +0100 Subject: Fix instance name displaying with long text --- client/src/app/app.component.html | 2 +- client/src/app/app.component.scss | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'client') diff --git a/client/src/app/app.component.html b/client/src/app/app.component.html index eda7cc4b6..dafc45266 100644 --- a/client/src/app/app.component.html +++ b/client/src/app/app.component.html @@ -6,7 +6,7 @@ - {{ instanceName }} + {{ instanceName }} diff --git a/client/src/app/app.component.scss b/client/src/app/app.component.scss index d502d63b5..24c4f66c7 100644 --- a/client/src/app/app.component.scss +++ b/client/src/app/app.component.scss @@ -31,11 +31,12 @@ display: flex; .top-left-block { - width: $menu-width; z-index: 1001; height: $header-height; display: flex; align-items: center; + flex: 1; + min-width: 0; .icon { @include icon(22px); @@ -47,13 +48,21 @@ } #peertube-title { + @include disable-default-a-behaviour; + width: 100%; font-size: 20px; font-weight: $font-bold; color: inherit !important; display: flex; align-items: center; + overflow: hidden; - @include disable-default-a-behaviour; + .instance-name { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + width: 100%; + } .icon.icon-logo { display: inline-block; @@ -76,8 +85,8 @@ height: $header-height; display: flex; align-items: center; - flex-grow: 1; justify-content: flex-end; + white-space: nowrap; } } -- cgit v1.2.3