Skip to content
This repository was archived by the owner on Nov 16, 2026. It is now read-only.

Even out the customer cards - #35

Closed
WillCraig wants to merge 1 commit into
mainfrom
fix/customer-card-alignment
Closed

WillCraig wants to merge 1 commit into
mainfrom
fix/customer-card-alignment

Conversation

@WillCraig

Copy link
Copy Markdown
Owner

What was off

  • Customer list, desktop and tablet: the Actions cell was display: flex, so it stopped behaving like a table cell. Its row line and height didn't match the other columns, which gave the rows a staircase look.
  • Customer list, phone cards: Profile and Edit were pushed to the right edge instead of lining up with the other values, and each card had an extra line under its last field.
  • Home page at 768px: the three choice cards split 2 + 1.
  • Profile on phones: the three links wrapped unevenly (one link, then two).

What changed

  • The Actions cell is a normal table cell again. The links sit in an inline-flex .action-links wrapper, and all cells are vertical-align: middle.
  • On phone cards, the links line up in the value column and the last field drops its line.
  • The home choices stay in one row of three from 640px up and keep one column on phones.
  • Profile links stack on phones.
  • Tap targets (--tap-min), roles, data-labels, visually-hidden names and the table caption are unchanged.

Verification

  • npm test -- --watch=false --browsers=ChromeHeadless: 59 of 59 pass.
  • ng build: clean, no budget warnings.
  • npm run a11y:pages: 0 violations on 9 screens.
  • Measured in headless Chrome at 390, 768, 1280 and 1440px. At 1440 the Actions cell was 48px tall in 52px rows; now every cell matches its row.

The Actions cell was display:flex, so it stopped acting like a table cell.
Its row line and height drifted from the other columns on desktop, and on
phone cards the links were pushed to the right edge instead of lining up
with the other values. The links now sit in an inline-flex wrapper inside
a normal cell. Phone cards also drop the extra line under the last field,
profile links stack evenly on phones, and the three home choices stay in
one row from tablet up instead of a 2 + 1 split.
@WillCraig WillCraig closed this Oct 27, 2026
@WillCraig
WillCraig deleted the fix/customer-card-alignment branch October 27, 2026 13:55
@WillCraig
WillCraig restored the fix/customer-card-alignment branch November 8, 2026 19:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant