Skip to content

fix(frontend): use fill layout for join tournament banner image#413

Merged
Hydrax117 merged 2 commits into
Arenax-gaming:mainfrom
Joewizy:fix/join-tournament-image-dimensions-365
Jun 1, 2026
Merged

fix(frontend): use fill layout for join tournament banner image#413
Hydrax117 merged 2 commits into
Arenax-gaming:mainfrom
Joewizy:fix/join-tournament-image-dimensions-365

Conversation

@Joewizy

@Joewizy Joewizy commented May 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds the tournament join page banner using Next.js Image with fill inside a fixed h-48 container so layout space is reserved before load (no CLS).
  • Supplies responsive sizes for the single-column join layout (max-w-lg).
  • Resolves tournament.banner when provided by the API, with a deterministic fallback image.

Closes #365

Test plan

  • Visit /tournaments/[id]/join for an open tournament and confirm the banner renders at 192px height without layout shift on load.
  • Run npm run build in frontend and confirm no Next.js Image width/height warnings for the join page.
  • Throttle network in DevTools and verify the banner area does not jump when the image appears.

Reserve banner space with a positioned h-48 container and Next.js Image
fill + sizes so the join page avoids CLS and build warnings.

Closes Arenax-gaming#365

Co-authored-by: Cursor <cursoragent@cursor.com>
@Joewizy Joewizy requested a review from anonfedora as a code owner May 30, 2026 13:23
@vercel

vercel Bot commented May 30, 2026

Copy link
Copy Markdown

@Joewizy is attempting to deploy a commit to the paul joseph's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented May 30, 2026

Copy link
Copy Markdown

@Joewizy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Hydrax117 Hydrax117 merged commit 33621b7 into Arenax-gaming:main Jun 1, 2026
0 of 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.

[FRONTEND] Join tournament page <Image> is missing required width and height props

2 participants