-
-
Notifications
You must be signed in to change notification settings - Fork 0
📱 fix responsive issue on contact button #312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
We still have the old commits on this one |
8fe5e0d to
81630f6
Compare
📝 Changed routes:
Commit 81630f6 (https://onruntime-website-kc6kfx1xc-onruntime.vercel.app). |
|
I've corrected the commit |
There was a problem hiding this 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 addresses a responsive design issue by adjusting the font size of the "Discuter de votre projet" button at a custom screen width of 480px and enhances layout consistency.
- Adds an "xs" screen breakpoint at 480px in the Tailwind configuration.
- Updates the contact CTA component to apply responsive text classes by wrapping the Link with a Button using the asChild prop.
- Applies a full-width class in the agency page to ensure a consistent container width.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tailwind.config.ts | Added custom "xs" breakpoint at 480px to support responsive design. |
| src/components/marketing/agency/contact-cta.tsx | Modified button structure and applied responsive text size classes for the contact button. |
| src/app/agency/[city]/page.tsx | Added a full-width class to the main element to improve layout consistency. |
Comments suppressed due to low confidence (2)
src/components/marketing/agency/contact-cta.tsx:49
- The responsive text size classes (text-md and xs:text-lg) override the default button size. Please add a comment or update documentation to clearly explain the intended behavior in relation to the button's size prop.
<Button asChild size="lg" className="text-md xs:text-lg">
src/app/agency/[city]/page.tsx:75
- Verify that adding the 'w-full' class to the main tag aligns with the overall layout design and does not adversely affect container widths on larger screens.
<main className="min-h-screen pt-32 pb-16 w-full">
![Screenshot of /agency/[city]](https://images.weserv.nl?url=https://sjc.microlink.io/0y6F3Q1Ao3AG69FwWc1oG9Y2ADqFTl1ZOaV2Sj1jNWFhrTLZsDB3N9SkpFuw_pFlbgSiO8ss9txT5b1uXVQvgA.png&w=600)
This modification fix responsive issue for "Discuter de votre projet" button by reducing text size from lg to md at a custom screen width of 480px.