More status page polish

This commit is contained in:
Mononaut
2024-03-06 19:34:12 +00:00
parent 31e320b2e2
commit be52fd4e46
13 changed files with 65 additions and 33 deletions

View File

@@ -1,4 +1,4 @@
<footer class="footer">
<footer class="footer" [class.inline-footer]="inline">
<div class="container-xl">
<div class="row text-center" *ngIf="mempoolInfoData$ | async as mempoolInfoData">
<div class="col d-none d-sm-block">

View File

@@ -6,6 +6,12 @@
background-color: #1d1f31;
box-shadow: 15px 15px 15px 15px #000;
z-index: 10;
&.inline-footer {
position: relative;
bottom: unset;
top: -44px;
}
}
.sub-text {

View File

@@ -1,4 +1,4 @@
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
import { Component, OnInit, ChangeDetectionStrategy, Input } from '@angular/core';
import { StateService } from '../../services/state.service';
import { Observable, combineLatest } from 'rxjs';
import { map } from 'rxjs/operators';
@@ -23,6 +23,8 @@ interface MempoolInfoData {
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class FooterComponent implements OnInit {
@Input() inline = false;
mempoolBlocksData$: Observable<MempoolBlocksData>;
mempoolInfoData$: Observable<MempoolInfoData>;
vBytesPerSecondLimit = 1667;