ui: put the card mimetype accent on the bottom edge

Roland's call, and the better one: along the top the accent sat immediately
against the poster's own top border, so the two edges competed.  On the bottom it
closes the card and reads as a property of the whole thing rather than a header
rule.
This commit is contained in:
Roland 2026-07-30 13:53:43 -06:00
parent 31d20c04da
commit dc811d08e3
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
3 changed files with 5 additions and 4 deletions

View file

@ -440,13 +440,13 @@ describe('Card', () => {
// files had dropped the accent because our Card had no equivalent.
const {container} = renderUI(<Card title='Water Storage.pdf' color='red'/>);
expect(container.firstChild).toHaveStyle({borderTop: '3px solid var(--red)'});
expect(container.firstChild).toHaveStyle({borderBottom: '3px solid var(--red)'});
});
it('has no accent when no colour is given', () => {
const {container} = renderUI(<Card title='Plain'/>);
expect(container.firstChild.style.borderTop).toBe('');
expect(container.firstChild.style.borderBottom).toBe('');
});
});