Repository navigation
items 续期历史表格:日期/金额/类型/备注列折行,尽量不换行 - #171
Merged
Merged
Conversation
Add nowrap to the date, amount, type and note columns and let the table scroll horizontally in narrow windows. The renewal-history card now spans both grid columns on desktop so all six columns fit without wrapping. Checkpoint: 9RxgsnfPfSW8ZxG-RiAt7
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
whitespace-nowrapand the table scrolls horizontally inside its card when space is tight.Changes
web/src/pages/items/ItemDetailPage.tsxwhitespace-nowrapon header cells and on both the read-only and inline-edit cells.overflow-hidden→overflow-x-auto, so narrow windows scroll instead of squeezing cells.md:col-span-2; the delete button and the summary rail get explicit grid placement, and mobile keeps its previous section order and 32px spacing (mt-8 md:mt-0).git diff -wshows the 14 substantive lines.Untouched: mobile card list, inline-edit logic, API calls, and every other page.
Testing
pnpm lint— 2 findings, both pre-existing and unrelated (biome schema-version note, unused import inworker/src/routes/items.ts);pnpm format:check,pnpm typecheck,pnpm build,pnpm test(301/301) all pass.