Skip to content

Commit f13a2d3

Browse files
authored
Merge pull request #7813 from AnkitRewar11/fix/learn-page-card-layout
fix: resolve card overflow and layout issues in Learn page sections
2 parents 5795d93 + fe34ea1 commit f13a2d3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/sections/Learn/LearnPage-Sections/learning-path.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const LearningPaths = () => {
8989
</div>
9090
<Row className="learning-path-cards">
9191
{data.learnPaths.nodes.map((tutorial) => (
92-
<Col $sm={6} key={tutorial.id}>
92+
<Col $sm={6} $md={4} key={tutorial.id}>
9393
<CardComponent tutorial={tutorial} path={`/learn/learning-paths/${tutorial.fields.learnpath}`} courseCount={getCoursesOfaLearningPath(tutorial.fields.learnpath).length} />
9494
</Col>
9595
))}

‎src/sections/Learn/LearnPage-Sections/workshops.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ export const WorkshopsListWrapper = styled.div`
109109
padding: 8rem 4.5rem;
110110
}
111111
.workshops-card {
112-
flex: 0 0 50%;
113-
max-width: 50%;
114-
margin: 1rem auto;
112+
flex: 0 0 33.333333%;
113+
max-width: 33.333333%;
114+
margin: 1rem 0;
115115
}
116116
117117
.feedback-section {

0 commit comments

Comments
 (0)