From aece70ce4a0aeaa93e0e7d2cf95e629d8e794c0f Mon Sep 17 00:00:00 2001 From: myxmaster Date: Tue, 26 Nov 2024 22:59:02 +0100 Subject: [PATCH] smaller line spacing in channel details --- components/FeeBreakdown.tsx | 25 +++++++++++++++++++++++ components/KeyValue.tsx | 11 ++++++++-- views/Channels/Channel.tsx | 40 +++++++++++++++++++++++++++++++------ 3 files changed, 68 insertions(+), 8 deletions(-) diff --git a/components/FeeBreakdown.tsx b/components/FeeBreakdown.tsx index 6fc5d7327..12baac322 100644 --- a/components/FeeBreakdown.tsx +++ b/components/FeeBreakdown.tsx @@ -113,6 +113,7 @@ export default class FeeBreakdown extends React.Component< sensitive /> } + compact /> } + compact /> {BackendUtils.supportInboundFees() && ( <> @@ -165,6 +169,7 @@ export default class FeeBreakdown extends React.Component< sensitive /> } + compact /> )} {!!localPolicy.inbound_fee_rate_milli_msat && ( @@ -178,6 +183,7 @@ export default class FeeBreakdown extends React.Component< ) / 10000 }%`} sensitive + compact /> )} {!!remotePolicy.inbound_fee_base_msat && ( @@ -196,6 +202,7 @@ export default class FeeBreakdown extends React.Component< sensitive /> } + compact /> )} {!!remotePolicy.inbound_fee_rate_milli_msat && ( @@ -209,6 +216,7 @@ export default class FeeBreakdown extends React.Component< ) / 10000 }%`} sensitive + compact /> )} @@ -264,6 +272,7 @@ export default class FeeBreakdown extends React.Component< sensitive /> } + compact /> } + compact /> } + compact /> } + compact /> {total_satoshis_received && ( } + compact /> )} @@ -377,6 +395,7 @@ export default class FeeBreakdown extends React.Component< toggleable /> } + compact /> )} {commit_fee && ( @@ -411,6 +431,7 @@ export default class FeeBreakdown extends React.Component< /> } sensitive + compact /> )} @@ -420,6 +441,7 @@ export default class FeeBreakdown extends React.Component< 'views.Channel.commitWeight' )} value={commit_weight} + compact /> )} @@ -437,6 +459,7 @@ export default class FeeBreakdown extends React.Component< ), localeString('views.Channel.csvDelay.info2') ]} + compact /> )} @@ -454,6 +477,7 @@ export default class FeeBreakdown extends React.Component< testnet ) } + compact /> )} {channelPoint && ( @@ -470,6 +494,7 @@ export default class FeeBreakdown extends React.Component< testnet ) } + compact /> )} diff --git a/components/KeyValue.tsx b/components/KeyValue.tsx index ca1e7e189..3a1ed205a 100644 --- a/components/KeyValue.tsx +++ b/components/KeyValue.tsx @@ -34,6 +34,7 @@ interface KeyValueProps { disableCopy?: boolean; ModalStore?: ModalStore; SettingsStore?: SettingsStore; + compact?: boolean; } @inject('ModalStore', 'SettingsStore') @@ -52,7 +53,8 @@ export default class KeyValue extends React.Component { mempoolLink, disableCopy, ModalStore, - SettingsStore + SettingsStore, + compact } = this.props; const { toggleInfoModal } = ModalStore!; @@ -167,7 +169,12 @@ export default class KeyValue extends React.Component { ); return ( - + ); diff --git a/views/Channels/Channel.tsx b/views/Channels/Channel.tsx index 23e69afc8..c6d9672aa 100644 --- a/views/Channels/Channel.tsx +++ b/views/Channels/Channel.tsx @@ -396,12 +396,14 @@ export default class ChannelView extends React.Component< )} {shortChannelId && ( )} {!!alias_scids && alias_scids.length > 0 && ( @@ -414,12 +416,14 @@ export default class ChannelView extends React.Component< value={PrivacyUtils.sensitiveValue( alias_scids.join(', ') )} + compact /> )} {zero_conf && ( )} {!(closeHeight || closeType) && ( @@ -431,6 +435,7 @@ export default class ChannelView extends React.Component< : localeString('general.false') } color={privateChannel ? 'green' : '#808000'} + compact /> )} {getCommitmentType && ( @@ -439,6 +444,7 @@ export default class ChannelView extends React.Component< 'views.Channel.commitmentType' )} value={getCommitmentType} + compact /> )} {chain_hash && ( @@ -446,6 +452,7 @@ export default class ChannelView extends React.Component< keyValue={localeString('views.Channel.chainHash')} value={chain_hash} sensitive + compact /> )} {!!closeHeight && ( @@ -460,6 +467,7 @@ export default class ChannelView extends React.Component< testnet ) } + compact /> )} {closeType && ( @@ -467,6 +475,7 @@ export default class ChannelView extends React.Component< keyValue={localeString('views.Channel.closeType')} value={closeType} sensitive + compact /> )} {getOpenInitiator && ( @@ -476,6 +485,7 @@ export default class ChannelView extends React.Component< )} value={getOpenInitiator} sensitive + compact /> )} {getCloseInitiator && ( @@ -485,6 +495,7 @@ export default class ChannelView extends React.Component< )} value={getCloseInitiator} sensitive + compact /> )} {closing_txid && ( @@ -499,6 +510,7 @@ export default class ChannelView extends React.Component< testnet ) } + compact /> )} {closing_tx_hash && ( @@ -515,6 +527,7 @@ export default class ChannelView extends React.Component< testnet ) } + compact /> )} {(pendingOpen || @@ -535,6 +548,7 @@ export default class ChannelView extends React.Component< testnet ) } + compact /> )} {!!pending_htlcs && pending_htlcs.length > 0 && ( @@ -595,6 +609,7 @@ export default class ChannelView extends React.Component< /> } sensitive + compact /> )} {time_locked_balance && ( @@ -610,6 +625,7 @@ export default class ChannelView extends React.Component< /> } sensitive + compact /> )} } + compact /> } + compact /> {unsettled_balance !== '0' && ( } + compact /> )} } indicatorColor={themeColor('outbound')} + compact /> } indicatorColor={themeColor('inbound')} + compact /> {!!local_chan_reserve_sat && ( )} {!!remote_chan_reserve_sat && ( )} {capacity && ( @@ -718,6 +745,7 @@ export default class ChannelView extends React.Component< value={ } + compact /> )}