Skip to content

fix(shared): align award modal button content on mobile#5901

Closed
AmarTrebinjac wants to merge 2 commits intomainfrom
eng-1292-fix-award-button
Closed

fix(shared): align award modal button content on mobile#5901
AmarTrebinjac wants to merge 2 commits intomainfrom
eng-1292-fix-award-button

Conversation

@AmarTrebinjac
Copy link
Copy Markdown
Contributor

@AmarTrebinjac AmarTrebinjac commented Apr 21, 2026

Summary

  • Add flex items-center gap-1 to the btn-label span in Button.tsx so mixed children (text + icons + price) align properly on mobile
  • Remove the redundant <span className="inline-flex gap-1"> workaround from the "Insufficient Cores" button in GiveAwardModal.tsx

Key decisions

  • Fixed at the Button component level rather than adding per-button overrides — the outer element is already inline-flex items-center, so making the inner label span flex is consistent and prevents this issue from recurring
  • gap-1 has no effect on buttons with a single text child, so existing buttons are unaffected

Test plan

  • All 64 Button-related tests pass
  • ESLint clean
  • TypeScript clean (0 errors in changed files)
  • Visual QA: award modal buttons on mobile viewport (< 480px) — "Buy Cores", "Insufficient Cores", and "Send Award for" should show text, icon, and price aligned on a single line

Closes ENG-1292


Created by Huginn 🐦‍⬛

Preview domain

https://eng-1292-fix-award-button.preview.app.daily.dev

AmarTrebinjac and others added 2 commits April 21, 2026 08:17
Make btn-label span a flex container so mixed children (text + icons +
price) align properly on mobile. Remove the redundant inline-flex
workaround span from the Insufficient Cores button.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

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

Project Deployment Actions Updated (UTC)
daily-webapp Ready Ready Preview Apr 21, 2026 8:29am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored Apr 21, 2026 8:29am

Request Review

@AmarTrebinjac
Copy link
Copy Markdown
Contributor Author

@claude since this is a 1 off lets not make the changes in the button component.

@claude
Copy link
Copy Markdown
Contributor

claude Bot commented Apr 21, 2026

Claude finished @AmarTrebinjac's task in 1m 58s —— View jobclaude/pr-5901-20260421-0831Create PR ➔


Tasks

  • Understand request: keep fix scoped to GiveAwardModal.tsx only, no Button.tsx changes
  • Read current state of the files
  • Apply inline inline-flex items-center gap-1 span fix to all 3 affected buttons in GiveAwardModal.tsx
  • Commit and push changes

Summary

Applied the alignment fix as a one-off directly in GiveAwardModal.tsx — no changes to Button.tsx. All three affected buttons now wrap their children in <span className="inline-flex items-center gap-1">:

  • Buy Cores — added wrapping span
  • Insufficient Cores — updated existing partial span to include items-center and move the price inside the span
  • Send Award for — added wrapping span

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