Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit a66d310

Browse files
committed
fixed ssr card
1 parent 7cf6314 commit a66d310

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/_pages/LandingPage/components/OtherFeaturesView/components/Cards/components/Card/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Card: React.FC<Props> = (props) => {
2020
className={clsx(styles.Container, className, {
2121
[styles.Container_Active]: active,
2222
})}
23-
style={{ width, height }}>
23+
style={{ maxWidth: width, height }}>
2424
<div className={styles.ContentContainer}>
2525
<img
2626
alt={data.imagePath}

src/_pages/LandingPage/components/OtherFeaturesView/components/Cards/styles.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
.Slider {
1111
position: relative;
12+
max-width: 400px; /* to prevent ssr very big card style */
1213
}
1314

1415
.Item {

0 commit comments

Comments
 (0)