Highlights
- The chart fills its card - it was drawn at a fixed size and scaled to fit, so on a wide screen it stopped well short of the right edge with the remainder left blank. It now takes the width it is actually given, without stretching the line or the labels.
- Fewer rows of buttons on a phone - picking which figure to plot took six buttons across three wrapped rows, above a chart that then had very little room left. They sit behind one button now, which shows the metric on screen, and open in a bottom sheet - the same control the date range uses just above.
Changes
Fixes
- fix(company-costs): the trend chart sizes itself to its container instead of drawing at a fixed width and centring the result.
- fix(company-costs): the metric picker collapses into a bottom sheet below the
smbreakpoint, matching the date range control.