Skip to content

Commit bccd684

Browse files
Fixed book Cover Cutoff
Signed-off-by: Rajesh-Nagarajan-11 <[email protected]>
1 parent 98f2792 commit bccd684

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/sections/Community/Newcomers-guide/NewcomersPageWrapper.style.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export const NewcomersGuideWrapper = styled.section`
122122
.community-collage {
123123
text-align: center ;
124124
min-width: 45vmin;
125+
overflow: hidden; /* Prevent book from overflowing */
125126
126127
}
127128
.community-img{
@@ -136,6 +137,12 @@ export const NewcomersGuideWrapper = styled.section`
136137
align-items: center;
137138
justify-content: center;
138139
perspective: 600px;
140+
max-width: 100%; /* Ensure it doesn't exceed container width */
141+
margin: 0 auto; /* Center the book */
142+
143+
@media (max-width: 992px) {
144+
margin-bottom: 2rem; /* Add space between book and text on mobile */
145+
}
139146
}
140147
141148
@keyframes initAnimation {
@@ -159,6 +166,8 @@ export const NewcomersGuideWrapper = styled.section`
159166
transform: rotateY(-30deg);
160167
transition: 1s ease;
161168
animation: 1s ease 0s 1 initAnimation;
169+
margin: 0 auto; /* Center the book */
170+
max-width: 200px; /* Ensure it doesn't exceed expected width */
162171
}
163172
164173
.book:hover {

0 commit comments

Comments
 (0)