-
Notifications
You must be signed in to change notification settings - Fork 317
fix:Responsiveness testimonials details #830
Conversation
WalkthroughThe changes involve updating the responsive design of the Changes
Assessment against linked issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ? TipsChat with CodeRabbit Bot (
|
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.
Review Status
Actionable comments generated: 1
Configuration used: CodeRabbit UI
Files selected for processing (2)
- src/components/Cards/TestimonialCard.jsx (1 hunks)
- src/components/layout/Testimonials.jsx (1 hunks)
Files skipped from review due to trivial changes (1)
- src/components/layout/Testimonials.jsx
Additional comments: 1
src/components/Cards/TestimonialCard.jsx (1)
- 3-3: The class
max:md:w-72
may not be correctly formatted. Verify that the CSS framework being used in this project supports this syntax. If it's Tailwind CSS, the correct format should bemd:max-w-72
.
<img | ||
alt='testimonial' | ||
className=' mb-2 inline-block h-20 w-20 rounded-full border-2 border-base-100 bg-base-100/10 object-cover object-center' | ||
src={src} | ||
/> | ||
<p className='text-lg'>{description}</p> | ||
<p className='text-lg max-md:w-64'>{description}</p> |
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.
The class max-md:w-64
appears to be a typo. If this is intended for Tailwind CSS, it should be corrected to md:max-w-64
.
- <p className='text-lg max-md:w-64'>{description}</p>
+ <p className='text-lg md:max-w-64'>{description}</p>
Committable suggestion
❗ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
<p className='text-lg max-md:w-64'>{description}</p> | |
<p className='text-lg md:max-w-64'>{description}</p> |
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.
@techmannih you need to fix this maybe? The max-md class doesn't exist in my knowledge. Also make sure that the UI looks appropriate after you correctly set the class.
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.
Looks like humans are talking. I'll be quiet for now. If you need me again, just tag @coderabbitai in a new comment.
7073206
to
5350bbc
Compare
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- src/components/Cards/TestimonialCard.jsx (1 hunks)
Additional comments: 1
src/components/Cards/TestimonialCard.jsx (1)
- 1-12: The changes to the
TestimonialCard
component with the addition of responsive classesmax:md:w-72
for the card andmd:max-w-64
for the description paragraph align with the PR's objective to improve responsiveness on medium-sized screens. These changes should help ensure that the testimonials are displayed properly without overflowing their designated space on various device sizes.
@@ -1,12 +1,12 @@ | |||
const TestimonialCard = ({ src, description, from }) => { | |||
return ( | |||
<div className='mb-10 flex h-full w-full flex-col items-center justify-center rounded-lg border border-content/20 bg-gradient-to-br from-content/0 to-content/10 p-4 py-8 text-center lg:flex-1'> | |||
<div className='mb-10 flex h-full w-full max:md:w-72 flex-col items-center justify-center rounded-lg border border-content/20 bg-gradient-to-br from-content/0 to-content/10 p-4 py-8 text-center lg:flex-1'> |
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.
And this one too.
@@ -32,7 +32,7 @@ const Testimonials = ({ | |||
{tweetId ? ( | |||
<TweetCarousael tweetId={tweetId} setTweetId={setTweetId} /> | |||
) : ( | |||
<div className='flex flex-col gap-4'> | |||
<div className='flex flex-col gap-4 max-md:w-80'> |
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.
Correct it.
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.
when I change this class, code is working locally and this is correct class
Stale pull request message |
Heyy @techmannih Feel free to comment and correct me if I'm wrong. We'll make sure to consider that. Thank you for your contribution! |
Fixes Issue #828
closes #828
Changes proposed
Now, Testimonials section is fully responsive with above of 320px , check my PR and also merged it
Check List (Check all the boxes which are applicable)
Screenshots
Add all the screenshots which support your changes
Summary by CodeRabbit
TestimonialCard
component, ensuring better layout on medium-sized screens.