Refactor transactions page for mobile responsiveness and semantics#779
Merged
Conversation
On narrow screens the transaction history table squeezed its rigid columns (whitespace-nowrap amounts/status, default p-4 padding, px-0 content, max-w-[80px] address cap) until content overlapped before the horizontal scrollbar engaged. Replace the cramped table-on-mobile with a responsive layout: - Below sm, render each transaction as a stacked card (details on top, amount + status on a second row), eliminating sideways scroll. - Keep the existing table for sm+ (Fiat column still shows at md+). - Extract shared logic/markup (getTxDerived, TxIdentity, StatusBadge) so the row and card stay DRY; fix address truncation with min-w-0 + truncate instead of a fixed-width cap. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4xBbTDDCCxzmFGzGpo1PC
Code review follow-up: role="listitem" was set directly on the card's <Link> (an <a href>), which overrides the anchor's implicit "link" role so screen readers no longer announce each card as a link. Move role="listitem" to a wrapper div so the list semantics and the link semantics both survive. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4xBbTDDCCxzmFGzGpo1PC
Refactor transactions page for mobile responsiveness
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.