diff --git a/frontend/src/app/components/app/app.component.ts b/frontend/src/app/components/app/app.component.ts index 63d1fd5a0..faf129308 100644 --- a/frontend/src/app/components/app/app.component.ts +++ b/frontend/src/app/components/app/app.component.ts @@ -20,7 +20,7 @@ export class AppComponent { @HostListener('document:keydown', ['$event']) handleKeyboardEvents(event: KeyboardEvent) { - if (event.target !== document.body) { + if (event.target instanceof HTMLInputElement) { return; } this.stateService.keyNavigation$.next(event); diff --git a/frontend/src/app/components/mempool-graph/mempool-graph.component.ts b/frontend/src/app/components/mempool-graph/mempool-graph.component.ts index d3f476fc1..9333396db 100644 --- a/frontend/src/app/components/mempool-graph/mempool-graph.component.ts +++ b/frontend/src/app/components/mempool-graph/mempool-graph.component.ts @@ -14,7 +14,6 @@ export class MempoolGraphComponent implements OnInit, OnChanges { @Input() data; @Input() dateSpan = '2h'; - network = ''; mempoolVsizeFeesOptions: any; mempoolVsizeFeesData: any; @@ -25,7 +24,6 @@ export class MempoolGraphComponent implements OnInit, OnChanges { ) { } ngOnInit(): void { - this.stateService.networkChanged$.subscribe((network) => this.network = network); const labelInterpolationFnc = (value: any, index: any) => { switch (this.dateSpan) { case '2h': @@ -71,7 +69,7 @@ export class MempoolGraphComponent implements OnInit, OnChanges { return '350+'; } if (i === 0) { - if (this.network === 'liquid') { + if (this.stateService.network === 'liquid') { return '0 - 1'; } return '1 sat/vB'; @@ -94,7 +92,7 @@ export class MempoolGraphComponent implements OnInit, OnChanges { const finalArrayVbyte = this.generateArray(mempoolStats); // Only Liquid has lower than 1 sat/vb transactions - if (this.network !== 'liquid') { + if (this.stateService.network !== 'liquid') { finalArrayVbyte.shift(); } diff --git a/frontend/src/app/components/transactions-list/transactions-list.component.html b/frontend/src/app/components/transactions-list/transactions-list.component.html index e6f17c71b..49cfbc804 100644 --- a/frontend/src/app/components/transactions-list/transactions-list.component.html +++ b/frontend/src/app/components/transactions-list/transactions-list.component.html @@ -10,6 +10,7 @@ ago +
@@ -41,7 +42,7 @@ {{ vin.prevout.scriptpubkey_address | shortenString : 16 }} - {{ vin.prevout.scriptpubkey_address | shortenString : 42 }} + {{ vin.prevout.scriptpubkey_address | shortenString : 35 }}
@@ -69,13 +70,13 @@ {{ vout.scriptpubkey_address | shortenString : 16 }} - {{ vout.scriptpubkey_address | shortenString : 42 }} + {{ vout.scriptpubkey_address | shortenString : 35 }} Peg-out to {{ vout.pegout.scriptpubkey_address | shortenString : 16 }} - {{ vout.pegout.scriptpubkey_address | shortenString : 42 }} + {{ vout.pegout.scriptpubkey_address | shortenString : 35 }} diff --git a/frontend/src/styles.scss b/frontend/src/styles.scss index 2a8416670..cf4122d1c 100644 --- a/frontend/src/styles.scss +++ b/frontend/src/styles.scss @@ -48,9 +48,6 @@ body { min-height: 1px; padding: 1.25rem; position: relative; - display: -webkit-box; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; min-width: 0; word-wrap: break-word; background-color: #24273e;