fix: address & hash max-width in sidebars #394
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Greptile Overview
Greptile Summary
This PR fixes max-width CSS values for addresses and hashes displayed in sidebar cards to ensure proper text wrapping.
Changes made:
max-w-[22ch]tomax-w-[21ch]for correct 2-line wrapping (42 ÷ 2 = 21)max-w-[23ch]tomax-w-[22ch]for correct 3-line wrapping (66 ÷ 3 = 22)The calculations are mathematically correct and the changes are consistently applied across all relevant components (AccountCard, TxTransactionCard, BlockCard) and routes (demo/address, token/$address).
Impact: Purely cosmetic CSS adjustments that improve visual consistency. No functional logic changes.
Confidence Score: 5/5
Important Files Changed
File Analysis
Sequence Diagram
sequenceDiagram participant User participant Browser participant Component participant CSS User->>Browser: Navigate to page with sidebar Browser->>Component: Render AccountCard/TxTransactionCard/BlockCard Component->>CSS: Apply max-width styling Note over CSS: Before PR:<br/>Address: max-w-[22ch]<br/>Tx Hash: max-w-[23ch] CSS-->>Component: Text wraps incorrectly Component-->>Browser: Display with improper alignment Note over Component,CSS: PR Changes Applied Component->>CSS: Apply corrected max-width Note over CSS: After PR:<br/>Address: max-w-[21ch] (42÷2=21)<br/>Tx Hash: max-w-[22ch] (66÷3=22)<br/>Block: 15px font + tracking CSS-->>Component: Text wraps at correct width Component-->>Browser: Display with proper alignment Browser-->>User: Show correctly formatted sidebar