Skip to content

Commit fad4abe

Browse files
Bookkeeper info cards responsiveness
1 parent cc2ceaa commit fad4abe

3 files changed

Lines changed: 6 additions & 10 deletions

File tree

apps/frontend/src/components/bookkeeper/BkprHome/AccountEventsInfo/AccountEventsInfo.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const AccountEventsInfo = () => {
4141
</Row>
4242
</Row>
4343
:
44-
<>
44+
<Row className='h-100 align-items-stretch'>
4545
<div className='d-flex flex-column align-items-stretch justify-content-between'>
4646
<div className='d-flex flex-column align-items-start p-2'>
4747
<span className='fs-6 text-dark'>Total Invoice Received</span>
@@ -51,8 +51,6 @@ const AccountEventsInfo = () => {
5151
<span className='fs-6 text-dark'>Total Payments Sent</span>
5252
<span className='fs-2 fw-bold primary'>-<CurrencyBox value={bkprSummary.total_payments_sent_msat} shorten={false} hideUnit={true} fromUnit={Units.MSATS} rootClasses='d-inline-flex flex-column' currencyClasses='fs-2 fw-bold primary'></CurrencyBox></span>
5353
</div>
54-
</div>
55-
<div className='d-flex flex-column align-items-stretch justify-content-between'>
5654
<div className='d-flex flex-column align-items-start p-2'>
5755
<span className='fs-6 text-dark'>Routing Revenue</span>
5856
<span className='fs-2 fw-bold primary'>+<CurrencyBox value={bkprSummary.routing_revenue_msat} shorten={false} hideUnit={true} fromUnit={Units.MSATS} rootClasses='d-inline-flex flex-column' currencyClasses='fs-2 fw-bold primary'></CurrencyBox></span>
@@ -62,7 +60,7 @@ const AccountEventsInfo = () => {
6260
<span className='fs-2 fw-bold primary'>-<CurrencyBox value={bkprSummary.onchain_fee_msat} shorten={false} hideUnit={true} fromUnit={Units.MSATS} rootClasses='d-inline-flex flex-column' currencyClasses='fs-2 fw-bold primary'></CurrencyBox></span>
6361
</div>
6462
</div>
65-
</>
63+
</Row>
6664
}
6765
</Card.Body>
6866
<Card.Footer className='d-flex justify-content-end px-2'>

apps/frontend/src/components/bookkeeper/BkprHome/SatsFlowInfo/SatsFlowInfo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const SatsFlowInfo = () => {
4141
</Row>
4242
</Row>
4343
:
44-
<div className='d-flex flex-row justify-content-between '>
44+
<Row className='h-100 align-items-stretch'>
4545
<div className='d-flex flex-column align-items-start p-2'>
4646
<span className='fs-6 text-dark'>Inflow this month</span>
4747
<span className='fs-3 fw-bold positive'>
@@ -54,7 +54,7 @@ const SatsFlowInfo = () => {
5454
<CurrencyBox value={bkprSummary.outflows_for_period_msat} shorten={false} hideUnit={true} fromUnit={Units.MSATS} rootClasses='d-inline-flex flex-column' currencyClasses='fs-3 fw-bold negative'></CurrencyBox>
5555
</span>
5656
</div>
57-
</div>
57+
</Row>
5858
}
5959
</Card.Body>
6060
<Card.Footer className='d-flex justify-content-end px-2'>

apps/frontend/src/components/bookkeeper/BkprHome/VolumeInfo/VolumeInfo.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const VolumeInfo = () => {
5555
</Row>
5656
:
5757
<>
58-
<div className='d-flex flex-column align-items-start p-2 pb-0 h-50'>
58+
<Row className='h-100 align-items-stretch'>
5959
<span className='fs-6 text-dark'>Route with Most Traffic</span>
6060
<OverlayTrigger
6161
placement='auto'
@@ -64,8 +64,6 @@ const VolumeInfo = () => {
6464
>
6565
<span className='fs-4 fw-bold positive'>{bkprSummary.most_traffic_route?.channel_scids}</span>
6666
</OverlayTrigger>
67-
</div>
68-
<div className='d-flex flex-column align-items-start p-2 pt-0 h-50'>
6967
<span className='fs-6 text-dark'>Route with Least Traffic</span>
7068
<OverlayTrigger
7169
placement='auto'
@@ -74,7 +72,7 @@ const VolumeInfo = () => {
7472
>
7573
<span className='fs-4 fw-bold negative'>{bkprSummary.least_traffic_route?.channel_scids}</span>
7674
</OverlayTrigger>
77-
</div>
75+
</Row>
7876
</>
7977
}
8078
</Card.Body>

0 commit comments

Comments
 (0)