Skip to content

fix(footer): stop title rules drifting when the brand heading wraps on mobile#231

Merged
ryzizub merged 1 commit into
2026from
claude/mobile-footer-titles-4c3c5a
Jul 9, 2026
Merged

fix(footer): stop title rules drifting when the brand heading wraps on mobile#231
ryzizub merged 1 commit into
2026from
claude/mobile-footer-titles-4c3c5a

Conversation

@ryzizub

@ryzizub ryzizub commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

Footer column titles frame their text with fixed-width red rule-dashes (::before/::after) on an inline-flex heading. The brand heading "DevFest.cz 2026" is long enough that on a narrow viewport, with larger accessibility text, or under browser zoom it wraps — the dashes stay pinned to the column edges while "2026" drops to a second line with no rules, so the decoration drifts away from the text and reads as broken on mobile.

Why

Reproduced at 320px + ~130% text (matches the reported mobile screenshot). The site name is long and must be free to reflow under zoom (WCAG 1.4.4 resize up to 200%), which the fixed flanking rules can't survive.

Behavior

  • white-space: nowrap on .col-title — the short section labels (Sitemap / Event / Organizer) stay on one line so their rules always frame the text instead of drifting.
  • .col-brand .col-title drops the flanking rules and is allowed to wrap, so the long site name reflows cleanly with no orphaned dashes.

Verified in the dev preview:

Case Result
Desktop (961px) unchanged — brand no-rule, 3 labels with rules, all single line
Mobile 375 @100% clean
Mobile 320 @131% text brand fits one line, labels keep rules
Mobile 320 @200% zoom brand wraps to 3 lines cleanly, zero horizontal overflow

Files

  • src/components/Footer.scss

The footer column titles use fixed-width red rule-dashes as flanking
::before/::after pseudo-elements on an inline-flex heading. The brand
heading "DevFest.cz 2026" is long enough that under a narrow viewport,
large accessibility text, or browser zoom it wraps: the dashes stay
pinned to the column edges while "2026" drops to a second line with no
rules, so the decoration drifts away from the text and looks broken on
mobile.

- Add `white-space: nowrap` to `.col-title` so the short section labels
  (Sitemap / Event / Organizer) always stay on one line and their rules
  frame the text instead of drifting.
- Drop the flanking rules on `.col-brand .col-title` and let it wrap.
  The site name must be free to reflow under zoom (WCAG 1.4.4 resize to
  200%), which the fixed side-rules can't survive.

Verified in preview: desktop unchanged; mobile 375 @100%, 320 @131% and
320 @200% all render cleanly with zero horizontal overflow.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ryzizub ryzizub merged commit 6d4e36e into 2026 Jul 9, 2026
2 checks passed
@ryzizub ryzizub deleted the claude/mobile-footer-titles-4c3c5a branch July 9, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant