Skip to content

Commit e878015

Browse files
committed
Correctly wrap content in pre tag so it doesn't overflow
1 parent edbbe52 commit e878015

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

resources/scripts/components/elements/activity/ActivityLogMetaButton.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ export default ({ meta }: { meta: Record<string, unknown> }) => {
99
return (
1010
<div className={'self-center md:px-4'}>
1111
<Dialog open={open} onClose={() => setOpen(false)} hideCloseIcon title={'Metadata'}>
12-
<pre className={'bg-gray-900 rounded p-2 overflow-x-scroll font-mono text-sm leading-relaxed'}>
12+
<pre
13+
className={
14+
'bg-gray-900 rounded p-2 font-mono text-sm leading-relaxed overflow-x-scroll whitespace-pre-wrap'
15+
}
16+
>
1317
{JSON.stringify(meta, null, 2)}
1418
</pre>
1519
<Dialog.Footer>

0 commit comments

Comments
 (0)