diff --git a/explorer/src/components/instruction/RawDetails.tsx b/explorer/src/components/instruction/RawDetails.tsx index 88bd9c381..a40ee847d 100644 --- a/explorer/src/components/instruction/RawDetails.tsx +++ b/explorer/src/components/instruction/RawDetails.tsx @@ -1,10 +1,9 @@ import React from "react"; import { TransactionInstruction } from "@solana/web3.js"; import { Address } from "components/common/Address"; -import { wrap } from "utils"; export function RawDetails({ ix }: { ix: TransactionInstruction }) { - const data = wrap(ix.data.toString("hex"), 50); + const data = ix.data.toString("hex"); return ( <> {ix.keys.map(({ pubkey, isSigner, isWritable }, keyIndex) => ( @@ -27,7 +26,7 @@ export function RawDetails({ ix }: { ix: TransactionInstruction }) { Instruction Data (Hex) -
{data}
+
{data}
diff --git a/explorer/src/scss/_solana.scss b/explorer/src/scss/_solana.scss index ee321d252..09c0f194e 100644 --- a/explorer/src/scss/_solana.scss +++ b/explorer/src/scss/_solana.scss @@ -331,3 +331,12 @@ div.inner-cards { background: red; border: 1px solid red; } + +pre.data-wrap { + max-width: 23rem; + white-space: pre-wrap; + white-space: -moz-pre-wrap; + white-space: -pre-wrap; + white-space: -o-pre-wrap; + word-wrap: break-word; +}