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> <header>
<nav class="navbar navbar-expand-md navbar-dark bg-dark"> <nav class="navbar navbar-expand-md navbar-dark bg-dark">
<ng-template [ngIf]="subdomain"> <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> </ng-template>
<a class="navbar-brand" [routerLink]="['/' | relativeUrl]" style="position: relative;"> <a class="navbar-brand" [routerLink]="['/' | relativeUrl]" style="position: relative;">
<ng-container *ngIf="{ val: connectionState$ | async } as connectionState"> <ng-container *ngIf="{ val: connectionState$ | async } as connectionState">

View file

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