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

Close the gap under the lookup heading on phones - #31

Merged
WillCraig merged 1 commit into
mainfrom
fix/phone-lookup-gap
Oct 22, 2026
Merged

WillCraig merged 1 commit into
mainfrom
fix/phone-lookup-gap

Conversation

@WillCraig

Copy link
Copy Markdown
Owner

What changed:

  • On phones (40rem and narrower) the page heading stacks into a column. The heading block kept its flex: 1 1 16rem from the component CSS, and in a column that 16rem became height. That left a big blank space above the New customer button.
  • Added a 40rem media query in customer-pages.component.css that sets the heading block to flex: 0 1 auto. The global rule in styles.css already tried this but lost to the component style. Desktop is unchanged.

Why: the lookup page looked broken on a phone.

How tested:

  • Headless Chrome against ng serve on port 4301, signed in as agent, on /customers.
  • Before, at 360px: the gap between the h1 and the New customer button was 218px, and the heading block was 316px tall.
  • After, at 360px: the gap is 16px, and the block is 114px tall. No horizontal scroll.
  • At 1280px, before and after are identical. The button sits beside the heading, and the block is 54px tall.
  • ng test: 56 of 56 pass. ng build passes. Screenshots are not committed.

@WillCraig
WillCraig merged commit a6be6e4 into main Oct 22, 2026
8 checks passed
@WillCraig
WillCraig deleted the fix/phone-lookup-gap branch October 22, 2026 13:07
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