Fix acceleration list css, move to /acceleration/list

This commit is contained in:
Mononaut 2024-01-27 16:45:18 +00:00
parent 520e79aec4
commit a79e1aec1c
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E
4 changed files with 64 additions and 48 deletions

View File

@ -66,7 +66,6 @@ export class AccelerationFeesGraphComponent implements OnInit, OnDestroy {
} }
ngOnInit(): void { ngOnInit(): void {
this.seoService.setTitle($localize`:@@bcf34abc2d9ed8f45a2f65dd464c46694e9a181e:Acceleration Fees`);
this.isLoading = true; this.isLoading = true;
if (this.widget) { if (this.widget) {
this.miningWindowPreference = '1m'; this.miningWindowPreference = '1m';
@ -86,6 +85,7 @@ export class AccelerationFeesGraphComponent implements OnInit, OnDestroy {
}), }),
); );
} else { } else {
this.seoService.setTitle($localize`:@@bcf34abc2d9ed8f45a2f65dd464c46694e9a181e:Acceleration Fees`);
this.miningWindowPreference = this.miningService.getDefaultTimespan('1w'); this.miningWindowPreference = this.miningService.getDefaultTimespan('1w');
this.radioGroupForm = this.formBuilder.group({ dateSpan: this.miningWindowPreference }); this.radioGroupForm = this.formBuilder.group({ dateSpan: this.miningWindowPreference });
this.radioGroupForm.controls.dateSpan.setValue(this.miningWindowPreference); this.radioGroupForm.controls.dateSpan.setValue(this.miningWindowPreference);

View File

@ -63,7 +63,22 @@ tr, td, th {
} }
.txid { .txid {
width: 25%; @media (max-width: 500px) {
display: none;
}
}
.fee, .block, .status {
width: 15%;
@media (max-width: 720px) {
width: 20%;
}
}
.widget {
.txid {
width: 30%;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
@ -108,7 +123,7 @@ tr, td, th {
} }
.fee { .fee {
width: 35%; width: 30%;
@media (max-width: 1060px) and (min-width: 768px) { @media (max-width: 1060px) and (min-width: 768px) {
text-align: start !important; text-align: start !important;
} }
@ -124,6 +139,7 @@ tr, td, th {
.status { .status {
width: 20% width: 20%
} }
}
/* Tooltip text */ /* Tooltip text */
.tooltip-custom { .tooltip-custom {

View File

@ -80,7 +80,7 @@
<div class="col"> <div class="col">
<div class="card list-card"> <div class="card list-card">
<div class="card-body"> <div class="card-body">
<a class="title-link" href="" [routerLink]="['/acceleration-list' | relativeUrl]"> <a class="title-link" href="" [routerLink]="['/acceleration/list' | relativeUrl]">
<h5 class="card-title d-inline" i18n="dashboard.recent-accelerations">Recent Accelerations</h5> <h5 class="card-title d-inline" i18n="dashboard.recent-accelerations">Recent Accelerations</h5>
<span>&nbsp;</span> <span>&nbsp;</span>
<fa-icon [icon]="['fas', 'external-link-alt']" [fixedWidth]="true" style="vertical-align: 'text-top'; font-size: 13px; color: #4a68b9"></fa-icon> <fa-icon [icon]="['fas', 'external-link-alt']" [fixedWidth]="true" style="vertical-align: 'text-top'; font-size: 13px; color: #4a68b9"></fa-icon>

View File

@ -52,7 +52,7 @@ const routes: Routes = [
] ]
}, },
{ {
path: 'acceleration-list', path: 'acceleration/list',
data: { networks: ['bitcoin'] }, data: { networks: ['bitcoin'] },
component: AccelerationsListComponent, component: AccelerationsListComponent,
}, },