mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
fix: stacked loading indicators
This commit is contained in:
parent
a57c7ac8bb
commit
72271d397d
4 changed files with 11 additions and 4 deletions
|
|
@ -1,16 +1,23 @@
|
|||
.sticky-loading {
|
||||
position: absolute;
|
||||
:host {
|
||||
position: fixed;
|
||||
right: 10px;
|
||||
z-index: 1000;
|
||||
font-size: 14px;
|
||||
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
|
||||
@media (width >= 992px) {
|
||||
left: 32px;
|
||||
top: 55px;
|
||||
}
|
||||
|
||||
@media (576px <= width < 992px ) {
|
||||
left: 18px;
|
||||
top: 55px;
|
||||
}
|
||||
|
||||
@media (width <= 575px) {
|
||||
left: 18px;
|
||||
top: 100px;
|
||||
|
|
@ -3,6 +3,7 @@ import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core
|
|||
@Component({
|
||||
selector: 'app-indexing-progress',
|
||||
templateUrl: './indexing-progress.component.html',
|
||||
styleUrl: 'indexing-progress.component.scss',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
standalone: false,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
<div *ngIf="this.indexingProgress$ | async as progress" class="sticky-loading">
|
||||
<div *ngIf="this.indexingProgress$ | async as progress">
|
||||
<span *ngIf="progress >= 0" class="me-auto badge rounded-pill bg-warning">{{ this.label }} ({{ progress }}%)</span>
|
||||
</div>
|
||||
|
|
@ -7,7 +7,6 @@ import { WebsocketService } from '@app/services/websocket.service';
|
|||
@Component({
|
||||
selector: 'app-loading-indicator',
|
||||
templateUrl: './loading-indicator.component.html',
|
||||
styleUrls: ['./loading-indicator.component.scss'],
|
||||
standalone: false,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue