Skip to content

Commit

Permalink
truncate error description so toast is always closeable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mary Hipp authored and Mary Hipp committed Sep 25, 2024
1 parent 70a35cc commit 8c08aa6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ export default function ErrorToastDescription({ errorType, errorMessage, session
}, [errorMessage, errorType, isLocal, t]);
return (
<Flex flexDir="column">
{description && <Text fontSize="md">{description}</Text>}
{description && (
<Text noOfLines={4} fontSize="md">
{description}
</Text>
)}
{!isLocal && (
<Flex gap="2" alignItems="center">
<Text fontSize="sm" fontStyle="italic">
Expand Down

0 comments on commit 8c08aa6

Please # to comment.