Skip to content

Commit

Permalink
fixed white-space issue for messages that contain code
Browse files Browse the repository at this point in the history
  • Loading branch information
yk committed Jan 17, 2023
1 parent 18e7eb8 commit 51a1d9a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion website/src/components/Messages/MessageTableEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ export function MessageTableEntry(props: MessageTableEntryProps) {
{props.enabled ? (
<Box width={["full", "full", "full", "fit-content"]} maxWidth={["full", "full", "full", "2xl"]}>
<Link href={`/messages/${item.id}`}>
<LinkBox bg={item.is_assistant ? backgroundColor : backgroundColor2} p="4" borderRadius="md">
<LinkBox
bg={item.is_assistant ? backgroundColor : backgroundColor2}
p="4"
borderRadius="md"
whiteSpace="pre-line"
>
{item.text}
</LinkBox>
</Link>
Expand Down

0 comments on commit 51a1d9a

Please sign in to comment.