mega-plant/app
David 4e3f1ac7d7 Mobile: make the Sites table fit 375px without losing the VAT split
The /sites table showed seven columns and needed roughly 493px of a 343px
viewport once the page padding is taken off, so at phone width the row was a
sideways scroll with the sticky Site column sitting on top of the figures —
the same trap the invoice table had.

Below sm it now shows Site, Total incl VAT and Unbooked. The ex-VAT and VAT
columns hide, but their split is not dropped: it moves under the total as two
stacked lines, "ex 161 367,50" and "VAT 24 205,13", which is the same
information the columns carried without the width.

The split is stacked rather than on one line because "161 367,50 + 24 205,13"
is wider than the total it annotates, which pushed the row back over the
viewport. The unbooked badge drops its word on mobile for the same reason — the
row is already tinted, and the count plus icon carry the meaning.

Width budget for the three visible columns: 154 + 102 + 60 = 316px of 343px.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-10-02 16:28:07 +02:00
..
api Sites: a real Sites list, with the unbooked lines bookable to a site 2026-10-02 16:24:06 +02:00
charts Round 4: regressions fixed + mobile standard 2026-09-12 12:05:43 +02:00
expenses Fix: the mobile table was mislabelled and clipping its own totals 2026-10-02 15:34:19 +02:00
income Invoices: Add Invoice becomes a real dialog; quieten the invoice table 2026-10-02 14:35:27 +02:00
overheads Fix: the mobile table was mislabelled and clipping its own totals 2026-10-02 15:34:19 +02:00
plant Sites: a real Sites list, with the unbooked lines bookable to a site 2026-10-02 16:24:06 +02:00
running Round 4: regressions fixed + mobile standard 2026-09-12 12:05:43 +02:00
sites Mobile: make the Sites table fit 375px without losing the VAT split 2026-10-02 16:28:07 +02:00
globals.css Fix: the mobile table was mislabelled and clipping its own totals 2026-10-02 15:34:19 +02:00
layout.tsx Sites: a real Sites list, with the unbooked lines bookable to a site 2026-10-02 16:24:06 +02:00
page.tsx Fix: the mobile table was mislabelled and clipping its own totals 2026-10-02 15:34:19 +02:00