Skip to content

Commit e474fa6

Browse files
authored
Update font size for latest txs on homepage (#2985)
* Update font size for latest txs on homepage Fixes #2981 * update screenshots for homepage component * remove unused envs * update styles of latest block and number of items in the lists
1 parent 5a418fa commit e474fa6

File tree

31 files changed

+17
-27
lines changed

31 files changed

+17
-27
lines changed

configs/envs/.env.eth

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ NEXT_PUBLIC_MARKETPLACE_BANNER_CONTENT_URL=https://gist.githubusercontent.com/0x
3737
NEXT_PUBLIC_MARKETPLACE_BANNER_LINK_URL=https://eth.blockscout.com/apps/revokescout?chainId=1
3838
NEXT_PUBLIC_MARKETPLACE_CATEGORIES_URL=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/marketplace-categories/default.json
3939
NEXT_PUBLIC_MARKETPLACE_ENABLED=true
40-
NEXT_PUBLIC_MARKETPLACE_RATING_AIRTABLE_API_KEY=patbqG4V2CI998jAq.9810c58c9de973ba2650621c94559088cbdfa1a914498e385621ed035d33c0d0
41-
NEXT_PUBLIC_MARKETPLACE_RATING_AIRTABLE_BASE_ID=appGkvtmKI7fXE4Vs
4240
NEXT_PUBLIC_MARKETPLACE_SUBMIT_FORM=https://airtable.com/appiy5yijZpMMSKjT/shr6uMGPKjj1DK7NL
4341
NEXT_PUBLIC_MARKETPLACE_SUGGEST_IDEAS_FORM=https://airtable.com/appiy5yijZpMMSKjT/pag3t82DUCyhGRZZO/form
4442
NEXT_PUBLIC_METADATA_SERVICE_API_HOST=https://metadata.services.blockscout.com

ui/home/LatestBlocksItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const LatestBlocksItem = ({ block, isLoading, animation }: Props) => {
3535
isLoading={ isLoading }
3636
number={ block.height }
3737
tailLength={ 2 }
38-
textStyle="xl"
38+
textStyle="md"
3939
fontWeight={ 500 }
4040
mr="auto"
4141
/>

ui/home/LatestTxs.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import LatestTxsItemMobile from './LatestTxsItemMobile';
1616

1717
const LatestTransactions = () => {
1818
const isMobile = useIsMobile();
19-
const txsCount = isMobile ? 2 : 6;
19+
const txsCount = isMobile ? 2 : 5;
2020
const { data, isPlaceholderData, isError } = useApiQuery('general:homepage_txs', {
2121
queryOptions: {
2222
placeholderData: Array(txsCount).fill(TX),
@@ -34,7 +34,7 @@ const LatestTransactions = () => {
3434
return (
3535
<>
3636
<SocketNewItemsNotice borderBottomRadius={ 0 } url={ txsUrl } num={ num } showErrorAlert={ showErrorAlert } isLoading={ isPlaceholderData }/>
37-
<Box mb={ 3 } display={{ base: 'block', lg: 'none' }}>
37+
<Box mb={ 3 } display={{ base: 'block', lg: 'none' }} textStyle="sm">
3838
{ data.slice(0, txsCount).map(((tx, index) => (
3939
<LatestTxsItemMobile
4040
key={ tx.hash + (isPlaceholderData ? index : '') }
@@ -44,7 +44,7 @@ const LatestTransactions = () => {
4444
))) }
4545
</Box>
4646
<AddressHighlightProvider>
47-
<Box mb={ 3 } display={{ base: 'none', lg: 'block' }}>
47+
<Box mb={ 3 } display={{ base: 'none', lg: 'block' }} textStyle="sm">
4848
{ data.slice(0, txsCount).map(((tx, index) => (
4949
<LatestTxsItem
5050
key={ tx.hash + (isPlaceholderData ? index : '') }

ui/home/LatestTxsItem.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
6969
timeFormat="relative"
7070
isLoading={ isLoading }
7171
color="text.secondary"
72-
textStyle="sm"
7372
flexShrink={ 0 }
7473
ml={ 2 }
7574
/>
@@ -84,13 +83,13 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
8483
/>
8584
<Flex flexDir="column" rowGap={ 3 }>
8685
{ !config.UI.views.tx.hiddenFields?.value && (
87-
<Skeleton loading={ isLoading } textStyle="md">
86+
<Skeleton loading={ isLoading }>
8887
<Text as="span" whiteSpace="pre">Value </Text>
8988
<Text as="span" color="text.secondary">{ getValueWithUnit(tx.value).dp(5).toFormat() } { currencyUnits.ether }</Text>
9089
</Skeleton>
9190
) }
9291
{ !config.UI.views.tx.hiddenFields?.tx_fee && (
93-
<Skeleton loading={ isLoading } display="flex" whiteSpace="pre" textStyle="md">
92+
<Skeleton loading={ isLoading } display="flex" whiteSpace="pre">
9493
<Text as="span">Fee </Text>
9594
<TxFee tx={ tx } accuracy={ 5 } color="text.secondary"/>
9695
</Skeleton>

ui/home/LatestTxsItemMobile.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,26 +65,24 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
6565
isLoading={ isLoading }
6666
color="text.secondary"
6767
fontWeight="400"
68-
fontSize="sm"
6968
ml={ 3 }
7069
/>
7170
</Flex>
7271
<AddressFromTo
7372
from={ tx.from }
7473
to={ dataTo }
7574
isLoading={ isLoading }
76-
fontSize="sm"
7775
fontWeight="500"
7876
mb={ 3 }
7977
/>
8078
{ !config.UI.views.tx.hiddenFields?.value && (
81-
<Skeleton loading={ isLoading } mb={ 2 } fontSize="sm" w="fit-content">
79+
<Skeleton loading={ isLoading } mb={ 2 } w="fit-content">
8280
<Text as="span">Value </Text>
8381
<Text as="span" color="text.secondary">{ getValueWithUnit(tx.value).dp(5).toFormat() } { currencyUnits.ether }</Text>
8482
</Skeleton>
8583
) }
8684
{ !config.UI.views.tx.hiddenFields?.tx_fee && (
87-
<Skeleton loading={ isLoading } fontSize="sm" w="fit-content" display="flex" whiteSpace="pre">
85+
<Skeleton loading={ isLoading } w="fit-content" display="flex" whiteSpace="pre">
8886
<Text as="span">Fee </Text>
8987
<TxFee tx={ tx } accuracy={ 5 } color="text.secondary"/>
9088
</Skeleton>

ui/home/LatestWatchlistTxs.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import LatestTxsItemMobile from './LatestTxsItemMobile';
1515
const LatestWatchlistTxs = () => {
1616
useRedirectForInvalidAuthToken();
1717
const isMobile = useIsMobile();
18-
const txsCount = isMobile ? 2 : 6;
18+
const txsCount = isMobile ? 2 : 5;
1919
const { data, isPlaceholderData, isError } = useApiQuery('general:homepage_txs_watchlist', {
2020
queryOptions: {
2121
placeholderData: Array(txsCount).fill(TX),
@@ -34,7 +34,7 @@ const LatestWatchlistTxs = () => {
3434
const txsUrl = route({ pathname: '/txs', query: { tab: 'watchlist' } });
3535
return (
3636
<>
37-
<Box mb={ 3 } display={{ base: 'block', lg: 'none' }}>
37+
<Box mb={ 3 } display={{ base: 'block', lg: 'none' }} textStyle="sm">
3838
{ data.slice(0, txsCount).map(((tx, index) => (
3939
<LatestTxsItemMobile
4040
key={ tx.hash + (isPlaceholderData ? index : '') }
@@ -43,7 +43,7 @@ const LatestWatchlistTxs = () => {
4343
/>
4444
))) }
4545
</Box>
46-
<Box mb={ 4 } display={{ base: 'none', lg: 'block' }}>
46+
<Box mb={ 4 } display={{ base: 'none', lg: 'block' }} textStyle="sm">
4747
{ data.slice(0, txsCount).map(((tx, index) => (
4848
<LatestTxsItem
4949
key={ tx.hash + (isPlaceholderData ? index : '') }
-806 Bytes
Loading
-812 Bytes
Loading
-768 Bytes
Loading
-802 Bytes
Loading

0 commit comments

Comments
 (0)