Skip to content

Commit a1f410a

Browse files
committed
styles: minor text alignment tweaks
1 parent 0b8d941 commit a1f410a

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

app/src/components/NodeStatus.tsx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ const Styled = {
1111
Wrapper: styled.div`
1212
line-height: 32px;
1313
`,
14+
Balance: styled.span`
15+
display: flex;
16+
align-items: center;
17+
`,
1418
Divider: styled.div`
1519
height: 2px;
1620
background-color: ${props => props.theme.colors.gray};
@@ -23,17 +27,21 @@ const NodeStatus: React.FC = () => {
2327
const { l } = usePrefixedTranslation('cmps.NodeStatus');
2428
const { nodeStore } = useStore();
2529

26-
const { Wrapper, Divider } = Styled;
30+
const { Wrapper, Balance, Divider } = Styled;
2731
return (
2832
<Wrapper>
2933
<HeaderFour>{l('title')}</HeaderFour>
3034
<Jumbo>
31-
<Bolt title="bolt" size="small" />
32-
<Unit sats={nodeStore.wallet.channelBalance} />
35+
<Balance>
36+
<Bolt title="bolt" size="small" />
37+
<Unit sats={nodeStore.wallet.channelBalance} />
38+
</Balance>
3339
</Jumbo>
3440
<Small>
35-
<Bitcoin title="bitcoin" size="small" />
36-
<Unit sats={nodeStore.wallet.walletBalance} suffix={false} />
41+
<Balance>
42+
<Bitcoin title="bitcoin" size="small" />
43+
<Unit sats={nodeStore.wallet.walletBalance} suffix={false} />
44+
</Balance>
3745
</Small>
3846
<Divider />
3947
</Wrapper>

app/src/components/common/text.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const HeaderFive = styled.h5`
4040

4141
export const Small = styled.p`
4242
font-size: ${props => props.theme.sizes.xs};
43-
line-height: 19px;
43+
line-height: 20px;
4444
`;
4545

4646
export const Jumbo = styled.span`

app/src/components/loop/ChannelRow.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ const Styled = {
3838
`}
3939
`,
4040
Column: styled(Column)<{ last?: boolean }>`
41-
overflow: hidden;
42-
text-overflow: ellipsis;
41+
white-space: nowrap;
4342
line-height: ${ROW_HEIGHT}px;
4443
`,
4544
StatusIcon: styled.span`

0 commit comments

Comments
 (0)