Skip to content

fix: improve vibes page mobile layout#31

Merged
rupurt merged 1 commit intomainfrom
mobile-vibes-page-improvements
Dec 28, 2025
Merged

fix: improve vibes page mobile layout#31
rupurt merged 1 commit intomainfrom
mobile-vibes-page-improvements

Conversation

@rupurt
Copy link
Copy Markdown
Contributor

@rupurt rupurt commented Dec 28, 2025

Summary

  • Use smaller font (text-xs) for curl command on mobile to prevent awkward wrapping before the copy button
  • Use smaller buttons (md sizing) on mobile for better proportions and consistent padding
  • Both changes scale up to original sizes on sm breakpoint (640px)

Test Plan

  • TypeScript type checking passes
  • Biome lint passes
  • All 156 unit tests pass
  • Manual test: view /products/vibes on mobile viewport
  • Verify curl command fits on one line without wrapping
  • Verify both buttons have consistent visual padding

- Use smaller font (text-xs) for curl command on mobile to prevent wrapping
- Use smaller buttons (md sizing) on mobile for better proportions
- Both changes scale up to original sizes on sm breakpoint
Copilot AI review requested due to automatic review settings December 28, 2025 01:29
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the mobile layout of the Vibes product page by adjusting font sizes and button dimensions to prevent awkward wrapping and improve visual proportions on small screens. Changes scale up to original sizes at the sm breakpoint (640px).

  • Reduces curl command font size on mobile to prevent wrapping
  • Adjusts button sizing on mobile for better proportions

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/routes/products/vibes.tsx Adds responsive sizing classes to both buttons for mobile optimization
src/components/products/CodeBlock/CodeBlock.tsx Changes font size to be smaller on mobile with responsive scaling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


<div className="flex items-center justify-center gap-4">
<Button asChild size="lg">
<Button asChild size="lg" className="h-10 px-5 text-sm sm:h-12 sm:px-7 sm:text-base">
Copy link

Copilot AI Dec 28, 2025

Choose a reason for hiding this comment

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

The className prop overrides the size='lg' prop's built-in styling. Consider removing the size prop or creating a custom size variant instead of using className overrides, as this pattern can lead to confusion and maintenance issues when the Button component's size definitions change.

Copilot uses AI. Check for mistakes.
variant="outline"
asChild
size="lg"
className="h-10 px-5 text-sm sm:h-12 sm:px-7 sm:text-base"
Copy link

Copilot AI Dec 28, 2025

Choose a reason for hiding this comment

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

This duplicates the same responsive styling from the button above. Consider extracting these classes into a shared constant (e.g., const responsiveButtonClasses = 'h-10 px-5 text-sm sm:h-12 sm:px-7 sm:text-base') to maintain consistency and reduce duplication.

Copilot uses AI. Check for mistakes.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
vibes-website 2b21ad4 Commit Preview URL

Branch Preview URL
Dec 28 2025, 01:30 AM

@rupurt rupurt enabled auto-merge December 28, 2025 01:31
@rupurt rupurt merged commit 627b241 into main Dec 28, 2025
3 checks passed
@rupurt rupurt deleted the mobile-vibes-page-improvements branch December 28, 2025 01:32
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.

2 participants