mirror of
https://github.com/mempool/mempool.git
synced 2025-03-03 09:39:17 +01:00
Merge pull request #2148 from mempool/simon/enterprise-logo-container
Enterprise logo container
This commit is contained in:
commit
e7e907d535
2 changed files with 11 additions and 2 deletions
|
@ -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">
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Add table
Reference in a new issue