Commit b75a926f authored by tom goriunov's avatar tom goriunov Committed by GitHub

Buggy display of Security Score in mobile version (#2751)

Fixes #2747
parent b2e1ae96
...@@ -87,7 +87,7 @@ const AppSecurityReport = ({ ...@@ -87,7 +87,7 @@ const AppSecurityReport = ({
wrapperProps={ triggerWrapperProps } wrapperProps={ triggerWrapperProps }
{ ...buttonProps } { ...buttonProps }
/> />
<PopoverContent w={{ base: 'calc(100vw - 48px)', lg: '328px' }} mx={{ base: 3, lg: 0 }} { ...popoverContentProps }> <PopoverContent w={{ base: 'calc(100vw - 48px)', lg: '328px' }} mx={{ base: 3, lg: 0 }} overflowY="auto" { ...popoverContentProps }>
<PopoverBody px="26px" py="20px" textStyle="sm"> <PopoverBody px="26px" py="20px" textStyle="sm">
<Text fontWeight="500" textStyle="xs" mb={ 2 } color="text.secondary">Smart contracts info</Text> <Text fontWeight="500" textStyle="xs" mb={ 2 } color="text.secondary">Smart contracts info</Text>
<Flex alignItems="center" justifyContent="space-between" py={ 1.5 }> <Flex alignItems="center" justifyContent="space-between" py={ 1.5 }>
......
...@@ -41,7 +41,7 @@ const ContractSecurityReport = ({ securityReport }: Props) => { ...@@ -41,7 +41,7 @@ const ContractSecurityReport = ({ securityReport }: Props) => {
score={ parseFloat(securityScore) } score={ parseFloat(securityScore) }
onClick={ handleClick } onClick={ handleClick }
/> />
<PopoverContent> <PopoverContent zIndex="modal2" w={{ base: 'calc(100vw - 48px)', lg: '328px' }} overflowY="auto">
<PopoverBody> <PopoverBody>
<Box mb={ 5 }> <Box mb={ 5 }>
The security score was derived from evaluating the smart contracts of a protocol on the { config.chain.name } network by { ' ' } The security score was derived from evaluating the smart contracts of a protocol on the { config.chain.name } network by { ' ' }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment