Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add hide address overflow on transaction history #3315

Merged
merged 3 commits into from
Feb 22, 2024
Merged

fix: Add hide address overflow on transaction history #3315

merged 3 commits into from
Feb 22, 2024

Conversation

daniel0ar
Copy link
Contributor

What it solves

Resolves #3197

How this PR fixes it

It truncates text with ellipsis on shrink, adding width 100% to TransferTxInfo container (Box) and hiding overflow on SrcEthHashInfo component (text Box itself).

How to test it

Open http://localhost:3000/transactions/history?safe=oeth:0x773D7c58941295aF412092efF5Aa3d188525e81a , open accordion of any transaction and check if address shortens with "..." at the end on smaller viewports.

Screenshots

image
image

@@ -62,7 +62,7 @@ const SrcEthHashInfo = ({
)

return (
<div className={css.container}>
<div className={css.container} style={{ width: '100%' }}>
Copy link
Member

@katspaugh katspaugh Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this style to styles.module.css to the .container class?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! Had not noticed it.

@daniel0ar
Copy link
Contributor Author

This PR also solves issue #3313 , not sure how to add this to the PR description though.

@katspaugh
Copy link
Member

Awesome, thank you!

@katspaugh katspaugh merged commit 48a0121 into safe-global:dev Feb 22, 2024
2 of 12 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Address overflows transaction details of transfers on mobile
2 participants