diff --git a/src/components/Decoder/index.tsx b/src/components/Decoder/index.tsx index f36506004..d030e507c 100644 --- a/src/components/Decoder/index.tsx +++ b/src/components/Decoder/index.tsx @@ -197,12 +197,10 @@ const Decoder = () => { } case DecodeMethod.BTCTimeLock: { const res = parseBtcTimeLockArgs(v) + const json = { ...res, script: JSON.stringify(res.script, null, 2) } return { - display: jsonToList({ - ...res, - script: JSON.stringify(res.script, null, 2), - }), - copy: res, + display: jsonToList(json), + copy: json, } } case DecodeMethod.Address: { diff --git a/src/components/Decoder/styles.module.scss b/src/components/Decoder/styles.module.scss index 9eb716437..cd59660bf 100644 --- a/src/components/Decoder/styles.module.scss +++ b/src/components/Decoder/styles.module.scss @@ -30,6 +30,7 @@ align-items: center; padding: 0.5rem calc(1.5rem - 2px); cursor: pointer; + white-space: nowrap; &::after { content: ''; diff --git a/src/pages/Transaction/TransactionCell/index.tsx b/src/pages/Transaction/TransactionCell/index.tsx index e81434a38..f0b9170d6 100644 --- a/src/pages/Transaction/TransactionCell/index.tsx +++ b/src/pages/Transaction/TransactionCell/index.tsx @@ -56,7 +56,7 @@ export const Addr: FC<{ address: string; isCellBase: boolean }> = ({ address, is }> - + {alias}