diff --git a/frontend/src/app/components/transactions-list/transactions-list.component.html b/frontend/src/app/components/transactions-list/transactions-list.component.html index 5ec98d488..bb5fa4930 100644 --- a/frontend/src/app/components/transactions-list/transactions-list.component.html +++ b/frontend/src/app/components/transactions-list/transactions-list.component.html @@ -342,16 +342,20 @@ } @else { - {{ vout.scriptpubkey_asm | hex2ascii | slice:0:200 }} - - @if ((vout.scriptpubkey_asm | hex2ascii).length > 200) { - @if (!showFullOpReturnPreview[vindex]) { - Show more - } @else { - Show less + @if ((vout.scriptpubkey_asm | hex2ascii).length > 200) { + {{ vout.scriptpubkey_asm | hex2ascii | slice:0:200 }} + + @if ((vout.scriptpubkey_asm | hex2ascii).length > 200) { + @if (!showFullOpReturnPreview[vindex]) { + Show more + } @else { + Show less + } } - } - + + } @else { + {{ vout.scriptpubkey_asm | hex2ascii }} + } } diff --git a/frontend/src/app/components/transactions-list/transactions-list.component.scss b/frontend/src/app/components/transactions-list/transactions-list.component.scss index 4aa93907b..24e459d44 100644 --- a/frontend/src/app/components/transactions-list/transactions-list.component.scss +++ b/frontend/src/app/components/transactions-list/transactions-list.component.scss @@ -324,3 +324,25 @@ h2 { background-color: var(--primary); } } + +.scriptmessage.opreturn-msg { + max-width: 20px; + @media (min-width: 476px) { + max-width: 110px; + } + @media (min-width: 576px) { + max-width: 190px; + } + @media (min-width: 768px) { + max-width: 330px; + } + @media (min-width: 850px) { + max-width: 452px; + } + @media (min-width: 992px) { + max-width: 120px; + } + @media (min-width: 1200px) { + max-width: 180px; + } +} \ No newline at end of file diff --git a/frontend/src/app/components/transactions-list/transactions-list.component.ts b/frontend/src/app/components/transactions-list/transactions-list.component.ts index 80a144ca8..582f6a92a 100644 --- a/frontend/src/app/components/transactions-list/transactions-list.component.ts +++ b/frontend/src/app/components/transactions-list/transactions-list.component.ts @@ -553,9 +553,7 @@ export class TransactionsListComponent implements OnInit, OnChanges, OnDestroy { } toggleShowFullOpReturnPreview(voutIndex: number): void { - console.log('toggleShowFullOpReturnPreview', voutIndex); this.showFullOpReturnPreview[voutIndex] = !this.showFullOpReturnPreview[voutIndex]; - console.log(this.showFullOpReturnPreview[voutIndex]); } toggleOrdData(txid: string, type: 'vin' | 'vout', index: number) {