@@ -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+ ${ responsiveSize ( "marginBottom" , 16 , 32 , 300 ) }
24+ ${ responsiveSize ( "marginLeft" , 8 , 44 , 300 ) }
25+ ${ responsiveSize ( "marginRight" , 8 , 44 , 300 ) }
2526 color: ${ ( { theme } ) => theme . secondaryText } ;
2627 text-align: center;
2728` ;
@@ -30,15 +31,15 @@ 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+ ${ responsiveSize ( "marginBottom" , 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+ ${ responsiveSize ( "marginBottom" , 8 , 32 , 300 ) }
4243` ;
4344
4445const MyStakeContainer = styled . div `
0 commit comments