@@ -5,6 +5,7 @@ import { useAccount } from "wagmi";
55import { isUndefined } from "utils/index" ;
66import { useKlerosCoreGetJurorBalance } from "hooks/contracts/generated" ;
77import KlerosLogo from "tsx:svgs/icons/kleros.svg" ;
8+ import { responsiveSize } from "styles/responsiveSize" ;
89
910const Container = styled . div `
1011 display: flex;
@@ -19,9 +20,9 @@ const StyledKlerosLogo = styled(KlerosLogo)`
1920
2021const StyledTitle = styled . div `
2122 display: flex;
22- margin-bottom: calc(16px + (32 - 16) * ((100vw - 300px) / (1250 - 300))) ;
23- margin-left: calc(8px + (44 - 8) * ((100vw - 300px) / (1250 - 300))) ;
24- margin-right: calc(8px + (44 - 8) * ((100vw - 300px) / (1250 - 300))) ;
23+ margin-bottom: ${ responsiveSize ( 16 , 32 , 300 ) } ;
24+ margin-left: ${ responsiveSize ( 8 , 44 , 300 ) } ;
25+ margin-right: ${ responsiveSize ( 8 , 44 , 300 ) } ;
2526 color: ${ ( { theme } ) => theme . secondaryText } ;
2627 text-align: center;
2728` ;
@@ -30,20 +31,20 @@ const AmountStakedOrWithdrawnContainer = styled.div`
3031 font-size: 24px;
3132 font-weight: 600;
3233 color: ${ ( { theme } ) => theme . secondaryPurple } ;
33- margin-bottom: calc(0px + (4 - 0) * ((100vw - 300px) / (1250 - 300))) ;
34+ margin-bottom: ${ responsiveSize ( 0 , 4 , 300 ) } ;
3435` ;
3536
3637const TotalStakeContainer = styled . div `
3738 display: flex;
3839 font-size: 14px;
3940 align-items: center;
4041 justify-content: center;
41- margin-bottom: calc(8px + (32 - 8) * ((100vw - 300px) / (1250 - 300))) ;
42+ margin-bottom: ${ responsiveSize ( 8 , 32 , 300 ) } ;
4243` ;
4344
4445const MyStakeContainer = styled . div `
4546 display: flex;
46- margin: 0px calc(4px + (8 - 4) * ((100vw - 300px) / (1250 - 300))) ;
47+ margin: 0px ${ responsiveSize ( 4 , 8 , 300 ) } ;
4748 color: ${ ( { theme } ) => theme . secondaryText } ;
4849` ;
4950
0 commit comments