Fix loading icon position.

This commit is contained in:
Miguel Medeiros 2021-10-29 10:46:16 -03:00
parent 1925023eb2
commit d1e72c0cc0
No known key found for this signature in database
GPG Key ID: 819EDEE4673F3EBB
2 changed files with 15 additions and 16 deletions

View File

@ -12,7 +12,6 @@
<div class="card-header"> <div class="card-header">
<i class="fa fa-area-chart"></i> <span i18n="statistics.memory-by-vBytes">Mempool by vBytes (sat/vByte)</span> <i class="fa fa-area-chart"></i> <span i18n="statistics.memory-by-vBytes">Mempool by vBytes (sat/vByte)</span>
<form [formGroup]="radioGroupForm" class="formRadioGroup" (click)="saveGraphPreference()"> <form [formGroup]="radioGroupForm" class="formRadioGroup" (click)="saveGraphPreference()">
<div class="spinner-border text-light bootstrap-spinner" *ngIf="spinnerLoading"></div>
<div class="btn-group btn-group-toggle" ngbRadioGroup name="radioBasic" formControlName="dateSpan"> <div class="btn-group btn-group-toggle" ngbRadioGroup name="radioBasic" formControlName="dateSpan">
<label ngbButtonLabel class="btn-primary btn-sm"> <label ngbButtonLabel class="btn-primary btn-sm">
<input ngbButton type="radio" [value]="'2h'" [routerLink]="['/graphs' | relativeUrl]" fragment="2h"> 2H (LIVE) <input ngbButton type="radio" [value]="'2h'" [routerLink]="['/graphs' | relativeUrl]" fragment="2h"> 2H (LIVE)
@ -75,6 +74,7 @@
<button (click)="invertGraph()" class="btn btn-primary btn-sm"><fa-icon [icon]="['fas', 'exchange-alt']" [rotate]="90" [fixedWidth]="true" i18n-title="statistics.component-invert.title" title="Invert"></fa-icon></button> <button (click)="invertGraph()" class="btn btn-primary btn-sm"><fa-icon [icon]="['fas', 'exchange-alt']" [rotate]="90" [fixedWidth]="true" i18n-title="statistics.component-invert.title" title="Invert"></fa-icon></button>
</div> </div>
</form> </form>
<div class="spinner-border text-light bootstrap-spinner" *ngIf="spinnerLoading"></div>
</div> </div>
<div class="card-body"> <div class="card-body">
<div class="incoming-transactions-graph"> <div class="incoming-transactions-graph">

View File

@ -18,12 +18,14 @@
.bootstrap-spinner { .bootstrap-spinner {
width: 22px; width: 22px;
height: 22px; height: 22px;
margin-right: 10px;
order: 2;
margin-left: 10px; margin-left: 10px;
@media (min-width: 653px) { position: absolute;
margin-left: 0px; top: 17px;
order: 1; right: 25px;
@media (min-width: 720px) {
position: relative;
top: 0px;
right: 0px;
} }
} }
@ -38,14 +40,14 @@
margin-top: 6px; margin-top: 6px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@media (min-width: 650px) { @media (min-width: 720px) {
flex-direction: row; flex-direction: row;
float: right; float: right;
margin-top: 0px; margin-top: 0px;
} }
.btn-sm { .btn-sm {
font-size: 10px; font-size: 10px;
@media (min-width: 768px) { @media (min-width: 790px) {
font-size: 14px; font-size: 14px;
} }
} }
@ -110,12 +112,9 @@
.btn-group-toggle { .btn-group-toggle {
display: inline-flex; display: inline-flex;
@media (min-width: 650px) { @media (min-width: 720px) {
display: block; display: block;
} }
label {
padding: 5px;
}
} }
.small-buttons { .small-buttons {
@ -126,7 +125,7 @@
justify-content: space-between; justify-content: space-between;
flex-direction: row-reverse; flex-direction: row-reverse;
@media (min-width: 650px) { @media (min-width: 720px) {
margin: 2px 0px; margin: 2px 0px;
width: auto; width: auto;
flex-direction: row; flex-direction: row;
@ -136,21 +135,21 @@
} }
.btn { .btn {
width: 49.25%; width: 49.25%;
@media (min-width: 650px) { @media (min-width: 720px) {
width: auto; width: auto;
} }
} }
.dropdown { .dropdown {
width: 49.25%; width: 49.25%;
display: flex; display: flex;
@media (min-width: 650px) { @media (min-width: 720px) {
width: auto; width: auto;
margin: 0px 5px; margin: 0px 5px;
} }
} }
#dropdownFees { #dropdownFees {
width: 100%; width: 100%;
@media (min-width: 650px) { @media (min-width: 720px) {
width: auto; width: auto;
} }
} }