fix(ui): refine tx trend chart visual proportions (rant 2026-08-24T13:31:02) - #142
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 freeto 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
Refine the transactions page "点数趋势" (points trend) chart visual proportions so it matches the delicate dashboard sparkline style (rant 2026-08-24T13:31:02: fonts too large, line too thick on v0.7.15).
Changes (CSS-only,
ui/css/style.css+ cache-bust bump):.trend-linestroke-width1.8 → 1.4(sparkline reference is 1.5; slightly finer per the rant's "或更细").tx-trend-axisfont9px → 8px(axis ticks + time labels, all rendered via this class).tx-trend-title12px → 11px,.tx-trend-legend11px → 10px,.tsw-btn(metric switcher)12px → 11pxwith tighter padding3px 12px → 2px 10px.tx-trendpadding10px 16px 8px → 8px 16px 6px, switch margin6px 0 8px → 4px 0 6px, legend gap12px → 10px/ padding-top4px → 2px, legend dot7px → 6px(proportional to smaller text)Unchanged (per rant requirement): gradient area, smooth curve, metric switcher (消费/收入/净变化/Token), hover tooltip — functionality preserved, visual proportions only.
Cache-bust
20260824-9→20260824-10.Tests
node --checkOK (no JS changes)cargo testunaffected (146/146 baseline green on main)