💄 Better toast UI when it doesn't contain details
This commit is contained in:
@@ -36,7 +36,7 @@ export const Toast = ({
|
||||
shadow="sm"
|
||||
fontSize="sm"
|
||||
pos="relative"
|
||||
maxW="450px"
|
||||
maxW={details ? '450px' : '300px'}
|
||||
>
|
||||
<HStack alignItems="flex-start" pr="7" spacing="3" w="full">
|
||||
<Icon customIcon={icon} status={status} />{' '}
|
||||
|
||||
@@ -26,6 +26,10 @@ export const ImportTypebotFromFileButton = ({
|
||||
console.error(err)
|
||||
showToast({
|
||||
description: "Failed to parse the file. Are you sure it's a typebot?",
|
||||
details: {
|
||||
content: JSON.stringify(err, null, 2),
|
||||
lang: 'json',
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user