Merge pull request #2148 from mempool/simon/enterprise-logo-container

Enterprise logo container
This commit is contained in:
wiz 2022-07-22 01:28:11 +02:00 committed by GitHub
commit e7e907d535
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -2,7 +2,9 @@
<header>
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
<ng-template [ngIf]="subdomain">
<img [src]="'/api/v1/enterprise/images/' + subdomain + '/logo'" height="35" class="subdomain_logo" onload="this.style.display='block'">
<div class="subdomain_container">
<img [src]="'/api/v1/enterprise/images/' + subdomain + '/logo'" class="subdomain_logo">
</div>
</ng-template>
<a class="navbar-brand" [routerLink]="['/' | relativeUrl]" style="position: relative;">
<ng-container *ngIf="{ val: connectionState$ | async } as connectionState">

View file

@ -147,6 +147,13 @@ nav {
}
.subdomain_logo {
max-height: 45px;
max-width: 140px;
margin: auto;
}
.subdomain_container {
width: 140px;
margin-right: 15px;
display: none;
text-align: center;
}