Skip to content

Restore mobile header layout + fix desktop spacing#821

Merged
realproject7 merged 2 commits intomainfrom
task/820-header-mobile-restore
Apr 3, 2026
Merged

Restore mobile header layout + fix desktop spacing#821
realproject7 merged 2 commits intomainfrom
task/820-header-mobile-restore

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

Fixes mobile layout regression from #819 and adds desktop spacing improvements.

Approach: Responsive dual rendering

Stats grid and CTA button render in two positions using hidden/sm:block and sm:hidden:

  • Desktop (sm+): Inside flex-1 column next to cover — hidden sm:block
  • Mobile: Full-width below cover+info row — sm:hidden

Stats content is extracted into a variable (statsGrid) to avoid JSX duplication.

Spacing fixes

  • Cover ↔ info gap: gap-4gap-4 sm:gap-6 (24px on desktop)
  • Info rows ↔ stats: mt-3mt-6 on desktop for more breathing room

Test Plan

  • Mobile: stats grid full-width below cover+info (not crammed next to cover)
  • Mobile: CTA button full-width below stats
  • Desktop: stats grid in right column next to cover
  • Desktop: CTA in right column
  • Desktop: increased gap between cover and info
  • Desktop: increased spacing between info rows and stats

Fixes #820

🤖 Generated with Claude Code

Stats grid and CTA render in two responsive positions:
- Desktop (sm+): inside flex-1 column next to cover (hidden on mobile)
- Mobile: full-width below cover+info row (hidden on desktop)

Also: sm:gap-6 between cover and info, mt-6 between info rows and
stats on desktop for more breathing room.

Fixes #820

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Apr 3, 2026 6:54pm

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST CHANGES

Summary

The responsive split fixes the main layout regression, and the desktop spacing changes are correct. One explicit acceptance criterion from issue #820 is still unmet: the mobile CTA is placed below the stats, but it is not full-width.

Findings

  • [medium] The mobile CTA still renders as the shared inline-width AddPlotButton, so it does not satisfy issue #820's requirement that the mobile button be full-width below the stats grid.
    • File: src/components/AddPlotButton.tsx:46
    • File: src/app/story/[storylineId]/page.tsx:393
    • Suggestion: Let the mobile usage opt into a full-width button or render a mobile-specific class variant instead of reusing the inline-width desktop button unchanged.

Decision

Requesting changes until the mobile CTA matches the full-width layout required by issue #820.

Apply w-full to AddPlotButton's anchor/div children on mobile via
parent selector [&_a]:w-full [&_div]:w-full. Desktop keeps
inline-block auto-width.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The follow-up change resolves my remaining mobile-layout blocker. The mobile CTA now gets full-width treatment through the mobile-only wrapper, while the desktop path keeps the inline-width button and the responsive stats placement remains intact.

Findings

  • [resolved] The mobile CTA now matches issue #820's full-width requirement.
    • File: src/app/story/[storylineId]/page.tsx:393
    • Suggestion: None.

Decision

Approving. My prior blocker on the mobile CTA width is addressed.

@realproject7 realproject7 merged commit 6550de8 into main Apr 3, 2026
5 checks passed
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.

[Bug] Storyline header: restore mobile layout + desktop spacing fixes

2 participants