From 8badacf123102212b578ff1747b8a98e319651b0 Mon Sep 17 00:00:00 2001 From: nymkappa <1612910616@pm.me> Date: Thu, 23 Nov 2023 14:54:50 +0900 Subject: [PATCH] [accelerator] fix preview text wrap not working on safari/firefox [accelerator] polish accelerator preview --- .../accelerate-preview.component.html | 22 +++++++++---------- .../accelerate-preview.component.scss | 13 ++++++----- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/frontend/src/app/components/accelerate-preview/accelerate-preview.component.html b/frontend/src/app/components/accelerate-preview/accelerate-preview.component.html index 2869d02ae..980774d7c 100644 --- a/frontend/src/app/components/accelerate-preview/accelerate-preview.component.html +++ b/frontend/src/app/components/accelerate-preview/accelerate-preview.component.html @@ -40,7 +40,7 @@ - + Size in vbytes of this transaction and its unconfirmed ancestors @@ -53,7 +53,7 @@ - + Fees already paid by this transaction and its unconfirmed ancestors @@ -95,7 +95,7 @@ Next block market rate - + {{ estimate.targetFeeRate | number : '1.0-0' }} sat/vB @@ -109,7 +109,7 @@ sats - + @@ -129,7 +129,7 @@ sats - + @@ -141,7 +141,7 @@ sats - + @@ -158,11 +158,11 @@ sats - + - + If your tx is accelerated to {{ estimate.targetFeeRate | number : '1.0-0' }} sat/vB @@ -181,13 +181,13 @@ sats - + - + If your tx is accelerated to ~{{ ((estimate.txSummary.effectiveFee + userBid) / estimate.txSummary.effectiveVsize) | number : '1.0-0' }} sat/vB @@ -204,7 +204,7 @@ sats - + diff --git a/frontend/src/app/components/accelerate-preview/accelerate-preview.component.scss b/frontend/src/app/components/accelerate-preview/accelerate-preview.component.scss index 814b37e7a..2e2b19ee8 100644 --- a/frontend/src/app/components/accelerate-preview/accelerate-preview.component.scss +++ b/frontend/src/app/components/accelerate-preview/accelerate-preview.component.scss @@ -8,9 +8,6 @@ align-items: center; justify-content: center; - .fee { - font-size: 1.2em; - } .rate { font-size: 0.9em; .symbol { @@ -64,8 +61,6 @@ .table-accelerator { tr { - text-wrap: wrap; - td { padding-top: 0; padding-bottom: 0; @@ -89,6 +84,7 @@ } &.info { color: #6c757d; + white-space: initial; } &.amt { text-align: right; @@ -97,6 +93,9 @@ &.units { padding-left: 0.2em; white-space: nowrap; + display: flex; + justify-content: space-between; + align-items: center; } } } @@ -106,4 +105,8 @@ flex-direction: row; align-items: stretch; margin-top: 1em; +} + +.item { + white-space: initial; } \ No newline at end of file