Merge pull request #3965 from mempool/nymkappa/network-switch-align
[network selection] fix some align issues
This commit is contained in:
		
						commit
						f8cfa35552
					
				| @ -40,8 +40,8 @@ | ||||
|   </a> | ||||
| 
 | ||||
|   <div ngbDropdown (window:resize)="onResize($event)" class="dropdown-container" *ngIf="env.TESTNET_ENABLED || env.SIGNET_ENABLED || env.LIQUID_ENABLED || env.BISQ_ENABLED || env.LIQUID_TESTNET_ENABLED"> | ||||
|     <button ngbDropdownToggle type="button" class="btn btn-secondary dropdown-toggle-split" aria-haspopup="true"> | ||||
|       <app-svg-images name="bisq" width="20" height="20" viewBox="0 0 75 75" style="width: 25px; height: 25px;" class="mainnet mr-1"></app-svg-images> | ||||
|     <button ngbDropdownToggle type="button" class="btn btn-secondary dropdown-toggle-split d-flex justify-content-center align-items-center" aria-haspopup="true"> | ||||
|       <app-svg-images class="d-flex justify-content-center align-items-center current-network-svg" name="bisq" width="20" height="20" viewBox="0 0 80 80"></app-svg-images> | ||||
|     </button> | ||||
|     <div ngbDropdownMenu [ngClass]="{'dropdown-menu-right' : isMobile}"> | ||||
|       <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage + (networkPaths['mainnet'] || '/')" ngbDropdownItem class="mainnet"><app-svg-images name="bitcoin" width="22" height="22" viewBox="0 0 65 65" style="width: 25px; height: 25px;" class="mainnet mr-1"></app-svg-images> Mainnet</a> | ||||
|  | ||||
| @ -147,3 +147,18 @@ nav { | ||||
| .navbar-brand { | ||||
|   margin-right: 5px; | ||||
| } | ||||
| 
 | ||||
| .current-network-svg { | ||||
|   width: 20px; | ||||
|   height: 20px; | ||||
|   margin-right: 5px; | ||||
| } | ||||
| 
 | ||||
| :host-context(.rtl-layout) { | ||||
|   .current-network-svg { | ||||
|     width: 20px; | ||||
|     height: 20px; | ||||
|     margin-left: 5px; | ||||
|     margin-right: 0px; | ||||
|   } | ||||
| } | ||||
| @ -45,8 +45,8 @@ | ||||
|   </a> | ||||
| 
 | ||||
|   <div ngbDropdown (window:resize)="onResize()" class="dropdown-container" *ngIf="env.TESTNET_ENABLED || env.SIGNET_ENABLED || env.LIQUID_ENABLED || env.BISQ_ENABLED || env.LIQUID_TESTNET_ENABLED"> | ||||
|     <button ngbDropdownToggle type="button" class="btn btn-secondary dropdown-toggle-split" aria-haspopup="true"> | ||||
|       <app-svg-images [name]="network.val === '' ? 'liquid' : network.val" width="22" height="22" viewBox="0 0 125 125" style="width: 30px; height: 30px; margin-right: 5px;"></app-svg-images> | ||||
|     <button ngbDropdownToggle type="button" class="btn btn-secondary dropdown-toggle-split d-flex justify-content-center align-items-center" aria-haspopup="true"> | ||||
|       <app-svg-images class="d-flex justify-content-center align-items-center current-network-svg" [name]="network.val === '' ? 'liquid' : network.val" width="20" height="20" viewBox="0 0 125 125"></app-svg-images> | ||||
|     </button> | ||||
|     <div ngbDropdownMenu [ngClass]="{'dropdown-menu-right' : isMobile}"> | ||||
|       <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage + (networkPaths['mainnet'] || '')" ngbDropdownItem class="mainnet"><app-svg-images name="bitcoin" width="22" height="22" viewBox="0 0 65 65" style="width: 25px; height: 25px;" class="mainnet mr-1"></app-svg-images> Mainnet</a> | ||||
|  | ||||
| @ -137,3 +137,18 @@ nav { | ||||
| .navbar-dark .navbar-nav .nav-link { | ||||
|   color: #f1f1f1; | ||||
| } | ||||
| 
 | ||||
| .current-network-svg { | ||||
|   width: 20px; | ||||
|   height: 20px; | ||||
|   margin-right: 5px; | ||||
| } | ||||
| 
 | ||||
| :host-context(.rtl-layout) { | ||||
|   .current-network-svg { | ||||
|     width: 20px; | ||||
|     height: 20px; | ||||
|     margin-left: 5px; | ||||
|     margin-right: 0px; | ||||
|   } | ||||
| } | ||||
| @ -18,8 +18,8 @@ | ||||
|   </a> | ||||
| 
 | ||||
|   <div (window:resize)="onResize()" ngbDropdown class="dropdown-container" *ngIf="env.TESTNET_ENABLED || env.SIGNET_ENABLED || env.LIQUID_ENABLED || env.BISQ_ENABLED || env.LIQUID_TESTNET_ENABLED"> | ||||
|     <button ngbDropdownToggle type="button" class="btn btn-secondary dropdown-toggle-split" aria-haspopup="true"> | ||||
|       <app-svg-images [name]="network.val === '' ? 'bitcoin' : network.val" width="20" height="20" viewBox="0 0 65 65" style="width: 30px; height: 30px; margin-right: 5px;"></app-svg-images> | ||||
|     <button ngbDropdownToggle type="button" class="btn btn-secondary dropdown-toggle-split d-flex justify-content-center align-items-center" aria-haspopup="true"> | ||||
|       <app-svg-images class="d-flex justify-content-center align-items-center current-network-svg" [name]="network.val === '' ? 'bitcoin' : network.val" width="20" height="20" viewBox="0 0 65 65"></app-svg-images> | ||||
|     </button> | ||||
|     <div ngbDropdownMenu [ngClass]="{'dropdown-menu-right' : isMobile}"> | ||||
|       <a ngbDropdownItem class="mainnet" [routerLink]="networkPaths['mainnet'] || '/'"><app-svg-images name="bitcoin" width="22" height="22" viewBox="0 0 65 65" style="width: 25px; height: 25px;" class="mainnet mr-1"></app-svg-images> Mainnet</a> | ||||
|  | ||||
| @ -193,3 +193,18 @@ nav { | ||||
|     font-size: 7px; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| .current-network-svg { | ||||
|   width: 20px; | ||||
|   height: 20px; | ||||
|   margin-right: 5px; | ||||
| } | ||||
| 
 | ||||
| :host-context(.rtl-layout) { | ||||
|   .current-network-svg { | ||||
|     width: 20px; | ||||
|     height: 20px; | ||||
|     margin-left: 5px; | ||||
|     margin-right: 0px; | ||||
|   } | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user