Skip to content

Commit 0bd14fa

Browse files
fix(frontend): transaction card tooltips (#757)
1 parent 9c9db76 commit 0bd14fa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

js/frontend/src/features/history/components/transaction-card/transaction-card.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
position: absolute;
3333
right: -40%;
3434
bottom: -100%;
35+
z-index: -1;
3536

3637
width: 100%;
3738
height: 200%;

js/frontend/src/features/history/components/transaction-card/transaction-card.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { HexString } from '@gear-js/api';
22
import { generatePath, Link } from 'react-router-dom';
33

4-
import { Card, CopyButton, Skeleton, Tooltip } from '@/components';
4+
import { Address, Card, CopyButton, Skeleton, Tooltip } from '@/components';
55
import { ROUTE } from '@/consts';
66
import { Token } from '@/context';
7-
import { cx, getTruncatedText } from '@/utils';
7+
import { cx } from '@/utils';
88

99
import { Transfer } from '../../types';
1010
import { BlockNumberLink } from '../block-number-link';
@@ -41,7 +41,7 @@ function TransactionCard(props: Props) {
4141
<Link to={generatePath(ROUTE.TRANSACTION, { id })} className={styles.info}>
4242
<TransactionDate timestamp={timestamp} className={styles.date} />
4343

44-
<p className={styles.hash}>{getTruncatedText(txHash)}</p>
44+
<Address value={txHash} className={styles.hash} />
4545

4646
<TransactionPair {...props} />
4747
<TransactionStatus status={status} />

0 commit comments

Comments
 (0)