diff --git a/ui/components/app/confirm-page-container/flask/index.scss b/ui/components/app/confirm-page-container/flask/index.scss index cd027f79c5eb..aff8fd2a482c 100644 --- a/ui/components/app/confirm-page-container/flask/index.scss +++ b/ui/components/app/confirm-page-container/flask/index.scss @@ -1,3 +1,8 @@ .snap-insight { word-wrap: break-word; + + &__container__data__json { + word-wrap: break-word; + overflow-x: auto; + } } diff --git a/ui/components/app/confirm-page-container/flask/snap-insight.js b/ui/components/app/confirm-page-container/flask/snap-insight.js index 81e3d71a5975..6446d4943b0c 100644 --- a/ui/components/app/confirm-page-container/flask/snap-insight.js +++ b/ui/components/app/confirm-page-container/flask/snap-insight.js @@ -64,11 +64,22 @@ export const SnapInsight = ({ transaction, chainId, selectedSnap }) => { > {key} - - {typeof data[key] === 'string' - ? data[key] - : JSON.stringify(data[key])} - + + {typeof data[key] === 'string' ? ( + + {data[key]} + + ) : ( + + + {JSON.stringify(data[key], null, 2)} + + + )} ))}
{JSON.stringify(data[key], null, 2)}