Merge pull request #2172 from mempool/simon/jumping-logo-fix
Fix for mempool logo jumping with various sizes of enterprise logo
This commit is contained in:
		
						commit
						e47547e549
					
				@ -9,7 +9,7 @@
 | 
				
			|||||||
  </ng-template>
 | 
					  </ng-template>
 | 
				
			||||||
    <ng-container *ngIf="{ val: connectionState$ | async } as connectionState">
 | 
					    <ng-container *ngIf="{ val: connectionState$ | async } as connectionState">
 | 
				
			||||||
      <img *ngIf="!officialMempoolSpace" src="/resources/mempool-logo.png" height="35" width="140" class="logo" [ngStyle]="{'opacity': connectionState.val === 2 ? 1 : 0.5 }" alt="The Mempool Open Source Project logo">
 | 
					      <img *ngIf="!officialMempoolSpace" src="/resources/mempool-logo.png" height="35" width="140" class="logo" [ngStyle]="{'opacity': connectionState.val === 2 ? 1 : 0.5 }" alt="The Mempool Open Source Project logo">
 | 
				
			||||||
      <app-svg-images *ngIf="officialMempoolSpace" name="officialMempoolSpace" style="width: 140px; height: 35px" width="500" height="126" viewBox="0 0 500 126"></app-svg-images>
 | 
					      <app-svg-images *ngIf="officialMempoolSpace" name="officialMempoolSpace" viewBox="0 0 500 126"></app-svg-images>
 | 
				
			||||||
      <div class="connection-badge">
 | 
					      <div class="connection-badge">
 | 
				
			||||||
        <div class="badge badge-warning" *ngIf="connectionState.val === 0" i18n="master-page.offline">Offline</div>
 | 
					        <div class="badge badge-warning" *ngIf="connectionState.val === 0" i18n="master-page.offline">Offline</div>
 | 
				
			||||||
        <div class="badge badge-warning" *ngIf="connectionState.val === 1" i18n="master-page.reconnecting">Reconnecting...</div>
 | 
					        <div class="badge badge-warning" *ngIf="connectionState.val === 1" i18n="master-page.reconnecting">Reconnecting...</div>
 | 
				
			||||||
 | 
				
			|||||||
@ -78,6 +78,7 @@ li.nav-item {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.navbar-brand {
 | 
					.navbar-brand {
 | 
				
			||||||
  position: relative;
 | 
					  position: relative;
 | 
				
			||||||
 | 
					  height: 65px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
nav {
 | 
					nav {
 | 
				
			||||||
@ -86,7 +87,7 @@ nav {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.connection-badge {
 | 
					.connection-badge {
 | 
				
			||||||
  position: absolute;
 | 
					  position: absolute;
 | 
				
			||||||
  top: 13px;
 | 
					  top: 22px;
 | 
				
			||||||
  width: 100%;
 | 
					  width: 100%;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -150,6 +151,7 @@ nav {
 | 
				
			|||||||
  width: 140px;
 | 
					  width: 140px;
 | 
				
			||||||
  margin-right: 15px;
 | 
					  margin-right: 15px;
 | 
				
			||||||
  text-align: center;
 | 
					  text-align: center;
 | 
				
			||||||
 | 
					  align-self: center;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.logo-holder {
 | 
					.logo-holder {
 | 
				
			||||||
@ -161,3 +163,9 @@ nav {
 | 
				
			|||||||
  flex-direction: row;
 | 
					  flex-direction: row;
 | 
				
			||||||
  display: flex;
 | 
					  display: flex;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					app-svg-images {
 | 
				
			||||||
 | 
					  align-self: center;
 | 
				
			||||||
 | 
					  width: 140px;
 | 
				
			||||||
 | 
					  height: 35px;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user