Skip to content

Commit 42ef657

Browse files
authored
Merge pull request #50 from codingknite/fix/tx-tags-bg
fix tx tags background
2 parents fef86da + 8be8e70 commit 42ef657

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

pages/_document.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ class MyDocument extends Document {
4242
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap"
4343
rel="stylesheet"
4444
/>
45+
{ /* eslint-disable-next-line max-len */ }
46+
<link
47+
href="https://fonts.googleapis.com/css2?family=Spline+Sans+Mono:ital,wght@0,300..700;1,300..700&family=Spline+Sans:wght@300..700&display=swap"
48+
rel="stylesheet"
49+
/>
4550

4651
{ /* eslint-disable-next-line @next/next/no-sync-scripts */ }
4752
<script src="/assets/envs.js"/>

theme/foundations/typography.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ import { theme } from '@chakra-ui/react';
22

33
export const BODY_TYPEFACE = 'Spline Sans';
44
export const HEADING_TYPEFACE = 'Spline Sans';
5+
export const MONO_TYPEFACE = 'Spline Sans Mono';
56

67
const typography = {
78
fonts: {
89
heading: `${ HEADING_TYPEFACE }, ${ theme.fonts.heading }`,
910
body: `${ BODY_TYPEFACE }, ${ theme.fonts.body }`,
11+
mono: `${ MONO_TYPEFACE }, ${ theme.fonts.mono }`,
1012
},
13+
1114
textStyles: {
1215
h2: {
1316
fontSize: [ '32px' ],

ui/tx/details/TxInfo.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,18 @@ const TxInfo = ({ data, isLoading, socketStatus }: Props) => {
530530
<Box minWidth="120px" flexShrink={ 0 }>
531531
<WvmTxTag tag={ tag[0] }/>
532532
</Box>
533-
<Text flexGrow={ 1 } wordBreak="break-word">{ tag[1] }</Text>
533+
<Text
534+
color="#fff"
535+
fontSize="14px"
536+
padding="2px 5px"
537+
width="fit-content"
538+
fontWeight="normal"
539+
wordBreak="break-word"
540+
backgroundColor="#161625"
541+
fontFamily="Spline Sans Mono"
542+
>
543+
{ tag[1] }
544+
</Text>
534545
</Box>
535546
)) }
536547
</Box>

0 commit comments

Comments
 (0)