Lines probably shouldn't wrap so much with code blocks. Probably this means that code blocks should use fairly different text metrics than the rest of the prompt.
Press "A" to open the addons view if necessary, then enter the following into the prompt field:
{"promptType":"qaPrompt","question":{"contents":"What's wrong with this implementation of `sum`?\n\n```\nfunction sum(list: number[]): number {\n return list.reduce((number, total) => number + total)\n}\n```","attachments":[]},"answer":{"contents":"The arguments to `reduce` are reversed.","attachments":[]}}
Lines probably shouldn't wrap so much with code blocks. Probably this means that code blocks should use fairly different text metrics than the rest of the prompt.
To reproduce
cd packages/ui; yarn storybook
prompt
field: