Skip to content

Commit

Permalink
Long Call field value in Decoded input data breaks adaptive UI on…
Browse files Browse the repository at this point in the history
… mobile (#2239)

Fixes #2216
  • Loading branch information
tom2drum authored Sep 13, 2024
1 parent d1632da commit 6da61c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/shared/logs/LogDecodedInputDataHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ interface Props {
const Item = ({ label, children, isLoading }: { label: string; children: React.ReactNode; isLoading?: boolean}) => {
return (
<Flex
w="100%"
columnGap={ 5 }
rowGap={ 2 }
px={{ base: 0, lg: 4 }}
Expand All @@ -35,6 +36,7 @@ const LogDecodedInputDataHeader = ({ methodId, methodCall, isLoading, rightSlot
fontSize="sm"
lineHeight={ 5 }
flexGrow={ 1 }
w="100%"
>
<Flex columnGap={ 2 } w="100%">
<Item label="Method id" isLoading={ isLoading }>
Expand All @@ -43,7 +45,7 @@ const LogDecodedInputDataHeader = ({ methodId, methodCall, isLoading, rightSlot
{ rightSlot }
</Flex>
<Item label="Call" isLoading={ isLoading }>
<Skeleton isLoaded={ !isLoading } whiteSpace="pre-wrap">{ methodCall }</Skeleton>
<Skeleton isLoaded={ !isLoading } whiteSpace="pre-wrap" w="100%">{ methodCall }</Skeleton>
</Item>
</VStack>
);
Expand Down

0 comments on commit 6da61c8

Please sign in to comment.