Skip to content

Commit 8528f25

Browse files
committed
update max-height of tx raw trace on desktop
1 parent b58e0d0 commit 8528f25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ui/shared/RawDataSnippet.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { HTMLChakraProps } from '@chakra-ui/react';
1+
import type { BoxProps, HTMLChakraProps } from '@chakra-ui/react';
22
import { Box, Flex, chakra } from '@chakra-ui/react';
33
import React from 'react';
44

@@ -12,8 +12,8 @@ interface Props {
1212
className?: string;
1313
rightSlot?: React.ReactNode;
1414
beforeSlot?: React.ReactNode;
15-
textareaMaxHeight?: string;
16-
textareaMinHeight?: string;
15+
textareaMaxHeight?: BoxProps['maxH'];
16+
textareaMinHeight?: BoxProps['minH'];
1717
showCopy?: boolean;
1818
isLoading?: boolean;
1919
contentProps?: HTMLChakraProps<'div'>;

ui/tx/TxRawTrace.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const TxRawTrace = ({ txQuery }: Props) => {
6868

6969
const text = JSON.stringify(dataToDisplay, undefined, 4);
7070

71-
return <RawDataSnippet data={ text } isLoading={ isPlaceholderData }/>;
71+
return <RawDataSnippet data={ text } isLoading={ isPlaceholderData } textareaMaxHeight={{ base: '400px', lg: '600px' }}/>;
7272
};
7373

7474
export default TxRawTrace;

0 commit comments

Comments
 (0)