Skip to content

Commit c250678

Browse files
committed
fix(neuron-ui): set the font-size of footer to 12px
1 parent 0e2709c commit c250678

2 files changed

Lines changed: 6 additions & 15 deletions

File tree

packages/neuron-ui/src/containers/Footer/index.tsx

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const stackStyles = {
1818
],
1919
}
2020
const stackItemStyles = {
21-
root: [theme.fonts.small],
21+
root: [theme.fonts.xSmall],
2222
}
2323

2424
export const SyncStatus = ({
@@ -28,13 +28,13 @@ export const SyncStatus = ({
2828
}: React.PropsWithoutRef<{ tipBlockNumber: string; syncedBlockNumber: string; bufferBlockNumber?: number }>) => {
2929
const [t] = useTranslation()
3030
if (tipBlockNumber === '') {
31-
return <Text variant="small">{t('footer.fail-to-fetch-tip-block-number')}</Text>
31+
return <Text variant="xSmall">{t('footer.fail-to-fetch-tip-block-number')}</Text>
3232
}
3333

3434
const percentage = +syncedBlockNumber / +tipBlockNumber
3535

3636
return (
37-
<div style={{ display: 'flex', alignItems: 'center', fontSize: theme.fonts.small.fontSize }}>
37+
<div style={{ display: 'flex', alignItems: 'center' }}>
3838
{+syncedBlockNumber + bufferBlockNumber < +tipBlockNumber ? (
3939
<>
4040
{t('sync.syncing')}
@@ -52,21 +52,12 @@ export const SyncStatus = ({
5252

5353
export const NetworkStatus = ({ name, online }: { name: string; online: boolean }) => {
5454
return (
55-
<Stack horizontal verticalAlign="center" tokens={{ childrenGap: 5 }}>
55+
<Stack horizontal verticalAlign="center" tokens={{ childrenGap: 5 }} styles={stackItemStyles}>
5656
<Icon
5757
iconName={online ? 'Connected' : 'Disconnected'}
5858
styles={{ root: { display: 'flex', alignItems: 'center' } }}
5959
/>
60-
<Text
61-
styles={{
62-
root: {
63-
fontSize: '14px',
64-
lineHeight: '14px',
65-
},
66-
}}
67-
>
68-
{name}
69-
</Text>
60+
<Text variant="xSmall">{name}</Text>
7061
</Stack>
7162
)
7263
}

packages/neuron-ui/src/utils/loadTheme.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import { registerIcons } from 'utils/icons'
3232
loadTheme({
3333
fonts: {
3434
tiny: { fontSize: '11px' },
35-
xSmall: { fontSize: '12px' },
35+
xSmall: { fontSize: '12px', lineHeight: '12px' },
3636
small: { fontSize: '14px' },
3737
smallPlus: { fontSize: '15px' },
3838
medium: { fontSize: '16px' },

0 commit comments

Comments
 (0)