# 056 - Flowing Card Edge ## User Story As the operator, I want the colour bar on top of a Match card to flow into the card instead of sitting on it as a strip, so that the card reads as one piece. ## Decisions (operator-confirmed 2026-11-25; do not re-litigate) 1. **Flowing bar** (operator, screenshot): the bar is full colour at the very top edge and fades into the card head within 22 px, following the card's rounded corners; the head's pattern fades in under it instead of starting at a hard line. Rejected: today's 6 px strip with a hard lower edge. 2. **No scrollbar through the edge**: the card itself no longer scrolls, only its body does, as 047 sets for Match cards; no scrollbar runs through the top corner. ## Approach ```mermaid flowchart TD subgraph P["๐Ÿงญ 0 ยท Preparation"] P1["๐Ÿ“‹ Write requirement"] --> P2{"โœ… Operator approves?"} P2 -- "โœ๏ธ corrections" --> P1 end P2 -- "๐Ÿค– yes" --> A1 subgraph A["๐ŸŒˆ A ยท Card edge"] A1["๐Ÿงฉ Bar as a fading overlay"] --> A2["๐Ÿ“œ Only the body scrolls"] A2 --> A3["โœ๏ธ E2E edge check updated"] end A3 --> C1 subgraph C["๐Ÿงช C ยท All of 039 to 056"] C1["๐Ÿงช All tests once"] --> C2{"๐ŸŸข Green?"} C2 -- "๐Ÿ”ด no: fix" --> C1 C2 -- "๐ŸŸข yes" --> CF{"๐Ÿ’ฌ Operator feedback on screenshots?"} CF -- "โœ๏ธ changes" --> A1 end CF -- "๐Ÿ‘ fits" --> D1["๐Ÿ Review, commit with operator OK, hand-over"] ``` ## Acceptance Criteria ### Edge - [ ] The front card's `::before` is 22 px high, painted with the card's gradient and masked from opaque at 0 px to transparent at 22 px. - [ ] The head pattern's mask starts transparent at 0 px. - [ ] The front card computes `overflow-y: hidden`; its `.match-body` scrolls. ### Tests - [ ] Unit: n/a: CSS. - [ ] Integration: n/a: no server change. - [ ] E2E: the edge check of `test_box_heads_e2e.py` asserts the Edge checks for every pattern in Chromium and Firefox; screenshots.