Fix mobile overflow on the homepage #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/mobile-overflow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes several mobile layout issues reported from a phone screenshot.
Root cause of the service-grid overflow: the
@media (max-width:560px)block was defined before the base.service-row { grid-template-columns: repeat(5, 1fr) }rule. With equal specificity the later base rule won even on phones, so the mobile reflow never applied — the 5-column grid forced all tiles to min-content width and clipped the service labels. Moved the responsive override to the end of the file so it wins, and switched toauto-fill, minmax(76px, 1fr)so tiles reflow into as many columns as comfortably fit.Also in this change:
clamp(1.55rem, 8.5vw, 2.2rem)+overflow-wrap: break-wordsowaywardinn.comscales down and can't run off-screen.0.8remto0.7rem(it looked oversized on mobile).white-space: nowrap/flex-shrink: 0so the line wraps instead of forcing horizontal overflow.