Skip to content

Commit e5feed8

Browse files
authored
Apply suggestions from code review
1 parent 02c1925 commit e5feed8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/StatsBoxGrid.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const GridItem: React.FC<IGridItemProps> = ({ metric, dir }) => {
6363
as={MdInfoOutline}
6464
boxSize={6}
6565
fill="text"
66-
mr="0.5rem"
66+
mr={2}
6767
_hover={{ fill: "primary" }}
6868
_active={{ fill: "primary" }}
6969
_focus={{ fill: "primary" }}
@@ -129,7 +129,7 @@ const GridItem: React.FC<IGridItemProps> = ({ metric, dir }) => {
129129
<Flex
130130
position="relative"
131131
color="text"
132-
height="20rem"
132+
height={80}
133133
flexDirection="column"
134134
justifyContent="space-between"
135135
alignItems="flex-start"
@@ -147,7 +147,7 @@ const GridItem: React.FC<IGridItemProps> = ({ metric, dir }) => {
147147
<div>
148148
<Text
149149
fontSize="xl"
150-
mb="0.5rem"
150+
mb={2}
151151
color="text"
152152
textTransform="uppercase"
153153
fontFamily="monospace"
@@ -193,8 +193,8 @@ const GridItem: React.FC<IGridItemProps> = ({ metric, dir }) => {
193193
bottom="8%"
194194
fontSize={{ base: "max(8.8vw, 48px)", lg: "min(4.4vw, 4rem)" }}
195195
fontWeight={600}
196-
marginTop="0rem"
197-
marginBottom="1rem"
196+
marginTop={0}
197+
marginBottom={4}
198198
color="text"
199199
flexWrap="wrap"
200200
textOverflow="ellipsis"
@@ -543,7 +543,7 @@ const StatsBoxGrid: React.FC<IProps> = () => {
543543
sm: "2rem 0 0",
544544
lg: "2rem 2rem 0",
545545
}}
546-
borderRadius="2px"
546+
borderRadius="sm"
547547
flexDirection={{
548548
base: "column",
549549
lg: "column",

0 commit comments

Comments
 (0)