fix: 文本长度过长

This commit is contained in:
archer 2023-04-04 14:20:10 +08:00
parent e08e8aa00b
commit c12aa7fdf7
No known key found for this signature in database
GPG Key ID: 569A5660D2379E28

View File

@ -166,13 +166,19 @@ const ModelDataCard = ({ model }: { model: ModelSchema }) => {
<Tbody> <Tbody>
{modelDataList.map((item) => ( {modelDataList.map((item) => (
<Tr key={item.id}> <Tr key={item.id}>
<Td> <Td minW={'200px'}>
<Box fontSize={'xs'} w={'100%'} whiteSpace={'pre-wrap'}> <Box fontSize={'xs'} whiteSpace={'pre-wrap'}>
{item.q} {item.q}
</Box> </Box>
</Td> </Td>
<Td minW={'200px'}> <Td minW={'200px'}>
<Box w={'100%'} fontSize={'xs'} whiteSpace={'pre-wrap'}> <Box
w={'100%'}
fontSize={'xs'}
whiteSpace={'pre-wrap'}
maxH={'250px'}
overflowY={'auto'}
>
{item.text} {item.text}
</Box> </Box>
</Td> </Td>