Skip to content

Commit

Permalink
fix: correct layout for depositor field in operation card details (#2374
Browse files Browse the repository at this point in the history
)

Co-authored-by: Sergey Zhuravlev <[email protected]>
  • Loading branch information
johnthecat and Sergey Zhuravlev authored Sep 26, 2024
1 parent 2ea3a06 commit c628407
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions src/renderer/pages/Operations/components/OperationCardDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -442,25 +442,27 @@ export const OperationCardDetails = ({ tx, account, extendedChain }: Props) => {

{depositorSignatory && (
<DetailRow label={t('operation.details.depositor')} className={valueClass}>
{depositorWallet ? (
<ExplorersPopover
button={<WalletCardSm wallet={depositorWallet} />}
address={depositorSignatory.accountId}
explorers={explorers}
addressPrefix={addressPrefix}
/>
) : (
<AddressWithExplorers
explorers={explorers}
accountId={depositorSignatory.accountId}
name={depositorSignatory.name}
addressFont={AddressStyle}
addressPrefix={addressPrefix}
matrixId={matrix.userId}
wrapperClassName="-mr-2 min-w-min"
type="short"
/>
)}
<div className="-mr-2">
{depositorWallet ? (
<ExplorersPopover
button={<WalletCardSm wallet={depositorWallet} />}
address={depositorSignatory.accountId}
explorers={explorers}
addressPrefix={addressPrefix}
/>
) : (
<AddressWithExplorers
explorers={explorers}
accountId={depositorSignatory.accountId}
name={depositorSignatory.name}
addressFont={AddressStyle}
addressPrefix={addressPrefix}
matrixId={matrix.userId}
wrapperClassName="-mr-2 min-w-min"
type="short"
/>
)}
</div>
</DetailRow>
)}

Expand Down

0 comments on commit c628407

Please sign in to comment.