You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Features
Header on the common look of the ha- cards*: the illustrated banner is now 90 px high on the full card and on the mini card alike, with a 10 px road edge to edge at the bottom.
The round icon of the header takes the colour of the featured parcel: blue when out for delivery or in transit, amber when awaiting pickup, green once delivered, red after a failed attempt or an exception, grey with nothing on the way. Day and night (lifted toward white on the night sky), on the full card, the mini card and without background.
Each card draws its scene with its own SVG ids, so several Parcel cards on one dashboard never share the moon's mask.
Status pill on the title row of both cards: the featured parcel's state (or "Nothing on the way") in the header icon's colour, right after the title only when the whole title and its whole label fit there (the title is never cut for it), else on a line of its own under the subtitle (kept to one line); when even that does not fit in the header, and on cards 200 px wide or less, only its dot stays (the state in its tooltip). Measured on the rendered header, so it holds in every language. The header buttons (refresh, add, detail) are small frosted rounds lined up in the banner's top right corner, the detail button last; with the classic header the mini card's detail button sits in the card's corner.
Documentation
README: screenshots of the mini card expanded to the full card, light and dark.
Fixes
show_title: false hides the title again in the illustrated header, where it sits in the title row with the status pill.