Skip to content

Commit aa8ff43

Browse files
author
saerom
committed
Refactor card width for better responsiveness on mobile view
- Updated card width to use max-w-[250px] and w-full for better responsiveness on smaller screens. Ensures cards are flexible on small devices while maintaining consistent width on larger screens.
1 parent 06590c8 commit aa8ff43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/sections/About.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const ServiceCard: React.FC<IServiceCard> = ({ index, title, icon }) => (
2222
tiltMaxAngleY={30}
2323
glareColor="#aaa6c3"
2424
>
25-
<div className="w-[250px]">
25+
<div className="max-w-[250px] w-full xs:w-[250px]">
2626
<motion.div
2727
variants={fadeIn("right", "spring", index * 0.5, 0.75)}
2828
className="green-pink-gradient shadow-card w-full rounded-[20px] p-[1px]"

0 commit comments

Comments
 (0)