remove 'on'/UI changes per feedback
This commit is contained in:
		
							parent
							
								
									b90cd4c7e3
								
							
						
					
					
						commit
						4220f99477
					
				| @ -220,7 +220,8 @@ export function parseDATUMTemplateCreator(coinbaseRaw: string): string[] | null | |||||||
| 
 | 
 | ||||||
|   const tagStart = tagLengthByte + 1; |   const tagStart = tagLengthByte + 1; | ||||||
|   const tags = bytes.slice(tagStart, tagStart + tagsLength); |   const tags = bytes.slice(tagStart, tagStart + tagsLength); | ||||||
|   const tagString = String.fromCharCode(...tags); |   let tagString = String.fromCharCode(...tags); | ||||||
|  |   tagString = tagString.replace('\x00', ''); | ||||||
| 
 | 
 | ||||||
|   return tagString.split('\x0f'); |   return tagString.split('\x0f'); | ||||||
| } | } | ||||||
| @ -185,7 +185,6 @@ | |||||||
|             <div class="on-pool-container" *ngIf="block.extras.pool.minerNames != undefined && block.extras.pool.minerNames.length > 1 && block.extras.pool.minerNames[1] != ''; else centralisedPool"> |             <div class="on-pool-container" *ngIf="block.extras.pool.minerNames != undefined && block.extras.pool.minerNames.length > 1 && block.extras.pool.minerNames[1] != ''; else centralisedPool"> | ||||||
|               {{ block.extras.pool.minerNames[1] }} |               {{ block.extras.pool.minerNames[1] }} | ||||||
|               <div class="on-pool"> |               <div class="on-pool"> | ||||||
|                 <span class="on-pool-text">on</span> |  | ||||||
|                 <img class="pool-logo" [src]="'/resources/mining-pools/' + block.extras.pool.slug + '.svg'" onError="this.src = '/resources/mining-pools/default.svg'" [alt]="'Logo of ' + block.extras.pool.name + ' mining pool'"> |                 <img class="pool-logo" [src]="'/resources/mining-pools/' + block.extras.pool.slug + '.svg'" onError="this.src = '/resources/mining-pools/default.svg'" [alt]="'Logo of ' + block.extras.pool.name + ' mining pool'"> | ||||||
|                 {{ block.extras.pool.name }} |                 {{ block.extras.pool.name }} | ||||||
|               </div> |               </div> | ||||||
|  | |||||||
| @ -94,12 +94,6 @@ h1 { | |||||||
|   border-radius: .25rem; |   border-radius: .25rem; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .on-pool-text { |  | ||||||
|   font-weight: normal; |  | ||||||
|   color: gray; |  | ||||||
|   padding-inline-end: 4px; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .pool-logo { | .pool-logo { | ||||||
|   width: 25px; |   width: 25px; | ||||||
|   height: 25px; |   height: 25px; | ||||||
|  | |||||||
| @ -61,18 +61,21 @@ | |||||||
|         </div> |         </div> | ||||||
|         <div class="animated" *ngIf="block.extras?.pool != undefined && showPools"> |         <div class="animated" *ngIf="block.extras?.pool != undefined && showPools"> | ||||||
|           <a [attr.data-cy]="'bitcoin-block-' + offset + '-index-' + i + '-pool'" class="badge" [routerLink]="[('/mining/pool/' + block.extras.pool.slug) | relativeUrl]"> |           <a [attr.data-cy]="'bitcoin-block-' + offset + '-index-' + i + '-pool'" class="badge" [routerLink]="[('/mining/pool/' + block.extras.pool.slug) | relativeUrl]"> | ||||||
|             <div class="on-pool-container" *ngIf="block.extras.pool.minerNames != undefined && block.extras.pool.minerNames.length > 1 && block.extras.pool.minerNames[1] != ''; else centralisedPool"> |             <div *ngIf="block.extras.pool.minerNames != undefined && block.extras.pool.minerNames.length > 1 && block.extras.pool.minerNames[1] != ''; else centralisedPool"> | ||||||
|  |               <div class="on-pool-container" *ngIf="block.height != markHeight; else selectedDecentralisedPool"> | ||||||
|                 {{ block.extras.pool.minerNames[1] }} |                 {{ block.extras.pool.minerNames[1] }} | ||||||
|                 <div class="on-pool"> |                 <div class="on-pool"> | ||||||
|                 <span class="on-pool-text">on</span> |  | ||||||
|                   <img class="pool-logo faded" [src]="'/resources/mining-pools/' + block.extras.pool.slug + '.svg'" onError="this.src = '/resources/mining-pools/default.svg'" [alt]="'Logo of ' + block.extras.pool.name + ' mining pool'"> |                   <img class="pool-logo faded" [src]="'/resources/mining-pools/' + block.extras.pool.slug + '.svg'" onError="this.src = '/resources/mining-pools/default.svg'" [alt]="'Logo of ' + block.extras.pool.name + ' mining pool'"> | ||||||
|                   <span class="on-pool-name-text">{{ block.extras.pool.name }}</span> |                   <span class="on-pool-name-text">{{ block.extras.pool.name }}</span> | ||||||
|                 </div> |                 </div> | ||||||
|               </div> |               </div> | ||||||
|             <ng-template #centralisedPool> |               <ng-template #selectedDecentralisedPool> | ||||||
|               <div class="pool-container"> |                 <img class="pool-logo faded" [src]="'/resources/mining-pools/' + block.extras.pool.slug + '.svg'" onError="this.src = '/resources/mining-pools/default.svg'" [alt]="'Logo of ' + block.extras.pool.name + ' mining pool'"> | ||||||
|                 <img class="pool-logo" [src]="'/resources/mining-pools/' + block.extras.pool.slug + '.svg'" onError="this.src = '/resources/mining-pools/default.svg'" [alt]="'Logo of ' + block.extras.pool.name + ' mining pool'"> {{ block.extras.pool.name }} |                 {{ block.extras.pool.minerNames[1] }} | ||||||
|  |               </ng-template> | ||||||
|             </div> |             </div> | ||||||
|  |             <ng-template #centralisedPool> | ||||||
|  |               <img class="pool-logo" [src]="'/resources/mining-pools/' + block.extras.pool.slug + '.svg'" onError="this.src = '/resources/mining-pools/default.svg'" [alt]="'Logo of ' + block.extras.pool.name + ' mining pool'"> {{ block.extras.pool.name }} | ||||||
|             </ng-template> |             </ng-template> | ||||||
|           </a> |           </a> | ||||||
|         </div> |         </div> | ||||||
|  | |||||||
| @ -19,12 +19,6 @@ | |||||||
|   pointer-events: none; |   pointer-events: none; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .on-pool-text { |  | ||||||
|   font-weight: normal; |  | ||||||
|   color: gray; |  | ||||||
|   padding-inline-end: 4px; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .on-pool-name-text { | .on-pool-name-text { | ||||||
|   display: inline-block; |   display: inline-block; | ||||||
|   padding-top: 2px; |   padding-top: 2px; | ||||||
| @ -42,10 +36,17 @@ | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .on-pool-container { | .on-pool-container { | ||||||
|  |   align-items: center; | ||||||
|  |   position: relative; | ||||||
|  |   top: -8px; | ||||||
|   display: flex; |   display: flex; | ||||||
|   flex-direction: column; |   flex-direction: column; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | .on-pool-container.selected { | ||||||
|  |   top: 0px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| .pool-container { | .pool-container { | ||||||
|   margin-top: 12px; |   margin-top: 12px; | ||||||
| } | } | ||||||
| @ -156,7 +157,7 @@ | |||||||
| #arrow-up { | #arrow-up { | ||||||
|   position: relative; |   position: relative; | ||||||
|   left: calc(var(--block-size) * 0.6); |   left: calc(var(--block-size) * 0.6); | ||||||
|   top: calc(var(--block-size) * 1.38); |   top: calc(var(--block-size) * 1.28); | ||||||
|   width: 0; |   width: 0; | ||||||
|   height: 0; |   height: 0; | ||||||
|   border-left: calc(var(--block-size) * 0.2) solid transparent; |   border-left: calc(var(--block-size) * 0.2) solid transparent; | ||||||
| @ -186,7 +187,7 @@ | |||||||
| 
 | 
 | ||||||
| .badge { | .badge { | ||||||
|   position: relative; |   position: relative; | ||||||
|   top: 8px; |   top: 15px; | ||||||
|   z-index: 101; |   z-index: 101; | ||||||
|   color: #FFF; |   color: #FFF; | ||||||
| } | } | ||||||
|  | |||||||
| @ -14,7 +14,7 @@ | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .blockchain-wrapper { | .blockchain-wrapper { | ||||||
|   height: 272px; |   height: 260px; | ||||||
|   -webkit-user-select: none; /* Safari */ |   -webkit-user-select: none; /* Safari */ | ||||||
|   -moz-user-select: none; /* Firefox */ |   -moz-user-select: none; /* Firefox */ | ||||||
|   -ms-user-select: none; /* IE10+/Edge */ |   -ms-user-select: none; /* IE10+/Edge */ | ||||||
|  | |||||||
| @ -687,7 +687,6 @@ | |||||||
|               <div class="on-pool-container" *ngIf="pool.minerNames != undefined && pool.minerNames.length > 1 && pool.minerNames[1] != ''; else centralisedPool"> |               <div class="on-pool-container" *ngIf="pool.minerNames != undefined && pool.minerNames.length > 1 && pool.minerNames[1] != ''; else centralisedPool"> | ||||||
|                 {{ pool.minerNames[1] }} |                 {{ pool.minerNames[1] }} | ||||||
|                 <div class="on-pool"> |                 <div class="on-pool"> | ||||||
|                   <span class="on-pool-text">on</span> |  | ||||||
|                   <img class="pool-logo" [src]="'/resources/mining-pools/' + pool.slug + '.svg'" onError="this.src = '/resources/mining-pools/default.svg'" [alt]="'Logo of ' + pool.name + ' mining pool'"> |                   <img class="pool-logo" [src]="'/resources/mining-pools/' + pool.slug + '.svg'" onError="this.src = '/resources/mining-pools/default.svg'" [alt]="'Logo of ' + pool.name + ' mining pool'"> | ||||||
|                   {{ pool.name }} |                   {{ pool.name }} | ||||||
|                 </div> |                 </div> | ||||||
|  | |||||||
| @ -73,12 +73,6 @@ | |||||||
|   border-radius: .25rem; |   border-radius: .25rem; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .on-pool-text { |  | ||||||
|   font-weight: normal; |  | ||||||
|   color: gray; |  | ||||||
|   padding-inline-end: 4px; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .pool-logo { | .pool-logo { | ||||||
|   width: 25px; |   width: 25px; | ||||||
|   height: 25px; |   height: 25px; | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| .dashboard-container { | .dashboard-container { | ||||||
|   text-align: center; |   text-align: center; | ||||||
|   margin-top: 1.0rem; |   margin-top: 0.5rem; | ||||||
|   .col { |   .col { | ||||||
|     margin-bottom: 1.5rem; |     margin-bottom: 1.5rem; | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user