Skip to content

Commit 7ae293c

Browse files
authored
fix: IndicatorGroup error
1 parent 9749891 commit 7ae293c

File tree

1 file changed

+4
-11
lines changed
  • src/components/Staking/StakingConsiderations

1 file changed

+4
-11
lines changed

src/components/Staking/StakingConsiderations/index.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,9 @@ const IndicatorGroup = ({
3737
return <WarningProductGlyphIcon style={style} />
3838
}
3939
return (
40-
<VStack
41-
spacing={2}
42-
flex={1}
43-
width={{ base: "fit-content", sm: "max-content" }}
44-
>
40+
<VStack spacing={2} flex={1}>
4541
<IndicatorIcon style={styleObj} />
46-
<Text
47-
fontSize="xs"
48-
textAlign="center"
49-
width={{ base: "fit-content", sm: "max-content" }}
50-
>
42+
<Text fontSize="xs" textAlign="center" maxW="{40}">
5143
<Translation id={label} />
5244
</Text>
5345
</VStack>
@@ -78,7 +70,8 @@ const StakingConsiderations = ({ page }: StakingConsiderationsProps) => {
7870

7971
const activeStyles = {
8072
bg: "background.highlight",
81-
color: "body.base"
73+
color: "body.base",
74+
transition: "background 0.5s, color 0.5s"
8275
}
8376

8477
return (

0 commit comments

Comments
 (0)