Skip to content

Commit ce91682

Browse files
authored
Merge pull request #4009 from topcoder-platform/feature-details-page-suggestion-cards
fix: fix recommended thrive articles layout (#4003)
2 parents 53554cc + 5b77f4c commit ce91682

File tree

1 file changed

+9
-3
lines changed
  • src/shared/components/challenge-detail/ThriveArticles

1 file changed

+9
-3
lines changed

src/shared/components/challenge-detail/ThriveArticles/style.scss

+9-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
display: flex;
1818
align-items: center;
1919
justify-content: space-between;
20-
margin-bottom: 20px;
2120
}
2221

2322
.header {
@@ -36,14 +35,15 @@
3635

3736
.articles {
3837
display: flex;
38+
flex-wrap: wrap;
3939
}
4040

4141
.article {
4242
display: flex;
43+
width: 380px;
4344
position: relative;
4445
overflow: hidden;
45-
flex: 1;
46-
margin: 0 13px;
46+
margin: 20px 13px 0;
4747
border-radius: (5 * $corner-radius);
4848
background-color: #f4f4f4;
4949
}
@@ -110,3 +110,9 @@
110110
margin-left: -1px;
111111
}
112112
}
113+
114+
@include xs-to-md {
115+
.article {
116+
width: 100%;
117+
}
118+
}

0 commit comments

Comments
 (0)