Commit 6da61c8a authored by tom goriunov's avatar tom goriunov Committed by GitHub

Long `Call` field value in `Decoded input data` breaks adaptive UI on mobile (#2239)

Fixes #2216
parent d1632daf
...@@ -13,6 +13,7 @@ interface Props { ...@@ -13,6 +13,7 @@ interface Props {
const Item = ({ label, children, isLoading }: { label: string; children: React.ReactNode; isLoading?: boolean}) => { const Item = ({ label, children, isLoading }: { label: string; children: React.ReactNode; isLoading?: boolean}) => {
return ( return (
<Flex <Flex
w="100%"
columnGap={ 5 } columnGap={ 5 }
rowGap={ 2 } rowGap={ 2 }
px={{ base: 0, lg: 4 }} px={{ base: 0, lg: 4 }}
...@@ -35,6 +36,7 @@ const LogDecodedInputDataHeader = ({ methodId, methodCall, isLoading, rightSlot ...@@ -35,6 +36,7 @@ const LogDecodedInputDataHeader = ({ methodId, methodCall, isLoading, rightSlot
fontSize="sm" fontSize="sm"
lineHeight={ 5 } lineHeight={ 5 }
flexGrow={ 1 } flexGrow={ 1 }
w="100%"
> >
<Flex columnGap={ 2 } w="100%"> <Flex columnGap={ 2 } w="100%">
<Item label="Method id" isLoading={ isLoading }> <Item label="Method id" isLoading={ isLoading }>
...@@ -43,7 +45,7 @@ const LogDecodedInputDataHeader = ({ methodId, methodCall, isLoading, rightSlot ...@@ -43,7 +45,7 @@ const LogDecodedInputDataHeader = ({ methodId, methodCall, isLoading, rightSlot
{ rightSlot } { rightSlot }
</Flex> </Flex>
<Item label="Call" isLoading={ isLoading }> <Item label="Call" isLoading={ isLoading }>
<Skeleton isLoaded={ !isLoading } whiteSpace="pre-wrap">{ methodCall }</Skeleton> <Skeleton isLoaded={ !isLoading } whiteSpace="pre-wrap" w="100%">{ methodCall }</Skeleton>
</Item> </Item>
</VStack> </VStack>
); );
......
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