SQl editor wrap errors instead of overflow scroll (#21987)

This commit is contained in:
Joshen Lim authored and GitHub committed 2024-03-13 16:32:29 +08:00
1 parent 455316b8cb
commit c6ccd74fac
1 file changed
+2 -2
@@ -104,10 +104,10 @@ const UtilityTabResults = ({ id, isExecuting }: UtilityTabResultsProps) => {
</p>
</div>
) : (
<div className="overflow-x-auto">
<div className="">
{formattedError.length > 0 ? (
formattedError.map((x: string, i: number) => (
<pre key={`error-${i}`} className="font-mono text-sm">
<pre key={`error-${i}`} className="font-mono text-sm text-wrap">
{x}
</pre>
))