From a79e1aec1cd518906f9ee031cdf6c90d4ce46f44 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Sat, 27 Jan 2024 16:45:18 +0000 Subject: [PATCH] Fix acceleration list css, move to /acceleration/list --- .../acceleration-fees-graph.component.ts | 2 +- .../accelerations-list.component.scss | 106 ++++++++++-------- .../accelerator-dashboard.component.html | 2 +- .../src/app/graphs/graphs.routing.module.ts | 2 +- 4 files changed, 64 insertions(+), 48 deletions(-) diff --git a/frontend/src/app/components/acceleration/acceleration-fees-graph/acceleration-fees-graph.component.ts b/frontend/src/app/components/acceleration/acceleration-fees-graph/acceleration-fees-graph.component.ts index 59bca27d4..d75cbba2d 100644 --- a/frontend/src/app/components/acceleration/acceleration-fees-graph/acceleration-fees-graph.component.ts +++ b/frontend/src/app/components/acceleration/acceleration-fees-graph/acceleration-fees-graph.component.ts @@ -66,7 +66,6 @@ export class AccelerationFeesGraphComponent implements OnInit, OnDestroy { } ngOnInit(): void { - this.seoService.setTitle($localize`:@@bcf34abc2d9ed8f45a2f65dd464c46694e9a181e:Acceleration Fees`); this.isLoading = true; if (this.widget) { this.miningWindowPreference = '1m'; @@ -86,6 +85,7 @@ export class AccelerationFeesGraphComponent implements OnInit, OnDestroy { }), ); } else { + this.seoService.setTitle($localize`:@@bcf34abc2d9ed8f45a2f65dd464c46694e9a181e:Acceleration Fees`); this.miningWindowPreference = this.miningService.getDefaultTimespan('1w'); this.radioGroupForm = this.formBuilder.group({ dateSpan: this.miningWindowPreference }); this.radioGroupForm.controls.dateSpan.setValue(this.miningWindowPreference); diff --git a/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.scss b/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.scss index 4182abb68..110ff033c 100644 --- a/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.scss +++ b/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.scss @@ -63,66 +63,82 @@ tr, td, th { } .txid { - width: 25%; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - max-width: 30%; - @media (max-width: 1060px) and (min-width: 768px) { - display: none; - } @media (max-width: 500px) { display: none; } } -.fee-rate { - width: 20%; - @media (max-width: 1060px) and (min-width: 768px) { - text-align: start !important; - } - @media (max-width: 500px) { - text-align: start !important; - } - @media (max-width: 840px) and (min-width: 768px) { - display: none; - } - @media (max-width: 410px) { - display: none; +.fee, .block, .status { + width: 15%; + + @media (max-width: 720px) { + width: 20%; } } -.bid { - width: 30%; - min-width: 150px; - @media (max-width: 840px) and (min-width: 768px) { - text-align: start !important; +.widget { + .txid { + width: 30%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + max-width: 30%; + @media (max-width: 1060px) and (min-width: 768px) { + display: none; + } + @media (max-width: 500px) { + display: none; + } } - @media (max-width: 410px) { - text-align: start !important; + + .fee-rate { + width: 20%; + @media (max-width: 1060px) and (min-width: 768px) { + text-align: start !important; + } + @media (max-width: 500px) { + text-align: start !important; + } + @media (max-width: 840px) and (min-width: 768px) { + display: none; + } + @media (max-width: 410px) { + display: none; + } } -} -.time { - width: 25%; -} - -.fee { - width: 35%; - @media (max-width: 1060px) and (min-width: 768px) { - text-align: start !important; + .bid { + width: 30%; + min-width: 150px; + @media (max-width: 840px) and (min-width: 768px) { + text-align: start !important; + } + @media (max-width: 410px) { + text-align: start !important; + } } - @media (max-width: 500px) { - text-align: start !important; + + .time { + width: 25%; } -} -.block { - width: 20%; -} + .fee { + width: 30%; + @media (max-width: 1060px) and (min-width: 768px) { + text-align: start !important; + } + @media (max-width: 500px) { + text-align: start !important; + } + } -.status { - width: 20% + .block { + width: 20%; + } + + .status { + width: 20% + } } /* Tooltip text */ diff --git a/frontend/src/app/components/acceleration/accelerator-dashboard/accelerator-dashboard.component.html b/frontend/src/app/components/acceleration/accelerator-dashboard/accelerator-dashboard.component.html index 243a48939..19d01e726 100644 --- a/frontend/src/app/components/acceleration/accelerator-dashboard/accelerator-dashboard.component.html +++ b/frontend/src/app/components/acceleration/accelerator-dashboard/accelerator-dashboard.component.html @@ -80,7 +80,7 @@