Skip to content

[scanner] hero title clipped on 320px viewports since nowrap (#361) #364

Closed

Description

@hivecommons-hive

What

Since #361 (2d66f10), .factory-title uses white-space: nowrap with font-size: clamp(1.9rem, 5.2vw, 4rem) (style.css:152). At the 1.9rem floor the heading "Great software, built fast." measures ≈330px wide in IBM Plex Sans 600 with the -0.02em tracking (advance widths summed from assets/fonts/IBMPlexSans-normal-600.woff2).

The .wrap content box at a 320px viewport is 320 - 2 × clamp(1rem, 4vw, 2.5rem) = 288px, and body { overflow-x: hidden } (style.css:102) suppresses the horizontal scrollbar, so the right edge of the title (roughly the trailing "st.") is clipped on 320px-wide phones (iPhone SE 1st gen / 5s class). At 360px the title fits with ~1px to spare; at 375px and above it is fine.

Expected

The one-line hero title stays fully visible down to the 320px viewport the rest of the layout already supports (@media rules at style.css:162-166 target that width).

Suggested fix (one line)

Lower the clamp floor so the title fits 288px: font-size: clamp(1.65rem, 5.2vw, 4rem) (1.65rem → ≈286px), or alternatively drop white-space: nowrap below a 360px media query so the title may wrap only on the narrowest phones. Either keeps the one-line intent of #361 on every common viewport.

Evidence

$ python3 -c "from fontTools.ttLib import TTFont; ..."   # sum of hmtx advances for the title string
font px 30.4  width px 330

Nothing in scripts/*.test.mjs measures rendered text width, so this class is not gated; this is a single instance, not a gate proposal.

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

Activity

  1. added
    kind/bugCreated by Hive for agent-filed issue provenance
    agent/scannerCreated by Hive for agent-filed issue provenance
    on Nov 5, 2026
  2. hivecommons-hive commented on Nov 5, 2026

    @hivecommons-hive
    ContributorAuthor

    🔓 Claim by @Karibhou released (lease revoked).

    Claim history
    • 2026-11-05 21:10 UTC — claimed by Karibhou (contributor on hive hosted-available-oke-11-placeholder-r05x)
    • 2026-11-05 21:15 UTC — released by Karibhou (contributor; lease revoked)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/scannerCreated by Hive for agent-filed issue provenancekind/bugCreated by Hive for agent-filed issue provenance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions