Skip to content

Commit

Permalink
fix: pageTitle tx detail + style address detail
Browse files Browse the repository at this point in the history
  • Loading branch information
Tien Nam Dao committed Oct 31, 2022
1 parent 1a95a9e commit 8ad2a2e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 14 deletions.
2 changes: 1 addition & 1 deletion components/Card/CardInfo/Components/RawInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function RawInput({ text }: RawInputProps) {
utf8Text = web3.utils.toAscii(text)
} catch (e) {}
return (
<div style={{ maxWidth: '885px' }}>
<div style={{ maxWidth: '885px', maxHeight: '200px', overflowY: 'scroll' }}>
<Tabs
tabs={[
{ title: 'Hex', id: '1', padding: ' ' },
Expand Down
2 changes: 1 addition & 1 deletion pages/tx/[tx].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const TransactionDetailPage: React.FC<Props> = ({ data, evmHash, cosmosHash }: P
<Breadcumbs
items={[
{ label: 'Validated Transactions', link: LinkMaker.transaction() },
{ label: ellipseBetweenText(cosmosHash, 6, 6) }
{ label: ellipseBetweenText(evmHash || cosmosHash, 6, 6) }
]}
/>
<div className="margin-top-2xl margin-bottom-md">
Expand Down
4 changes: 4 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
div {
overflow-x: initial !important;
}

.alert-enter {
transform: translateY(-100%);
}
Expand Down
34 changes: 22 additions & 12 deletions views/accounts/AddressOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,29 @@ const AddressOverview = ({ address, addressData }: Props) => {
</div>
</Row>
{isContract && (
<div
style={{ justifyContent: 'space-between' }}
className={clsx(styles.borderBottom, 'padding-bottom-lg padding-top-lg')}
>
<div>
<span className="text text-base contrast-color-50">Owner</span>
<br />
<LinkText href={LinkMaker.address(addressData.creator)}>{addressData.creator}</LinkText>
<div style={{ justifyContent: 'space-between' }} className={clsx('padding-bottom-lg padding-top-lg')}>
{addressData.tokenSymbol && (
<div
className={clsx(
styles.borderBottom,
'row padding-bottom-sm padding-top-sm block-ver-center'
)}
>
<span className="col-2 text text-base contrast-color-50">Token</span>
<span className="col-10 text text-base">
{addressData.tokenName} ({addressData.tokenSymbol})
</span>
</div>
)}
<div className={clsx(styles.borderBottom, 'row padding-bottom-sm padding-top-sm block-ver-center')}>
<span className="col-2 text text-base contrast-color-50">Owner</span>
<LinkText classes="col-10" href={LinkMaker.address(addressData.creator)}>
{addressData.creator}
</LinkText>
</div>
<div>
<span className="text text-base contrast-color-50">Transaction Hash</span>
<br />
<LinkText href={LinkMaker.transaction(addressData.creationTransaction)}>
<div className={clsx(styles.borderBottom, 'row padding-bottom-sm padding-top-sm block-ver-center')}>
<span className="col-2 text text-base contrast-color-50">Creation Hash</span>
<LinkText classes="col-10" href={LinkMaker.transaction(addressData.creationTransaction)}>
{addressData.creationTransaction}
</LinkText>
</div>
Expand Down

0 comments on commit 8ad2a2e

Please sign in to comment.