Repository navigation
feat(ui): mobile card layout for tables at 560px (v1.18 C) - #50
Merged
Merged
Conversation
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.
Summary
Rant
2026-08-17T18:06:09(UI/UE 第三轮多角度深化), item C — 移动端表格卡片化: at narrow widths the tables currently scroll horizontally; convert key tables (market/sharing/transactions/admin) to a card layout with label:value rows instead.Changes
@media (max-width: 560px):.table theadhidden; eachtbody trbecomes a card (border + radius + spacing);tdrenders as two-columnlabel: valueviatd::before { content: attr(data-label) }(label muted small, value right-aligned);flex: 1 1 45%);.pager-sizehidden; empty-state centered.<td>s now carrydata-label— market, sharing, API keys (settings), members, departments, operator users, raise requests;buildDataTable(transactions) auto-usescol.titleas the label.docs/user-stories.mdv1.18 changelog adds item C;ui/README.md移动端表格卡片化约定 section.Acceptance
At ≤560px: no horizontal scroll; each row is a card with label:value pairs; badges kept; action buttons full-width.
Tests
node --checkon app.js — syntax OKdata-labelattributes present across all table rendererscargo test— 1 passedcargo fmt --check— clean