Fix instance name displaying with long text
authorChocobozzz <me@florianbigard.com>
Tue, 20 Feb 2018 13:16:32 +0000 (14:16 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 20 Feb 2018 13:16:32 +0000 (14:16 +0100)
client/src/app/app.component.html
client/src/app/app.component.scss

index eda7cc4b610f304de90db153d9ff47553426cb02..dafc452668a8e9630df2491ca3cf58da48a546f2 100644 (file)
@@ -6,7 +6,7 @@
 
       <a id="peertube-title" [routerLink]="['/videos/list']" title="Homepage">
         <span class="icon icon-logo"></span>
-        {{ instanceName }}
+        <span class="instance-name">{{ instanceName }}</span>
       </a>
     </div>
 
index d502d63b5c385ddd11020fddc3abc8fe1bb31071..24c4f66c72803ade539d38d29f4451febb41e064 100644 (file)
   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);
     }
 
     #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;
   }
 }