Fix instance name displaying with long text
This commit is contained in:
parent
54a932e82a
commit
8a44f8354e
2 changed files with 13 additions and 4 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue