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

Commit 4363a2e

Browse files
fixed #994 challenge cards in mobile
1 parent 35a8134 commit 4363a2e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

assets/css/directives/challenge-tile.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,11 @@ challenge-tile .challenge.tile-view {
280280
}
281281

282282

283+
@media only screen and (max-width: 768px) {
284+
.active-challenge {
285+
height: auto;
286+
}
287+
}
283288
.completed-challenge {
284289
height: 390px;
285290
display: flex;

assets/css/my-dashboard/my-challenges.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@
131131
}
132132

133133
.challenges {
134-
@include horizontal-scroll;
134+
display: flex;
135+
flex-direction: column;
136+
justify-content: center;
137+
margin-left: 0;
135138

136139
&.tile-view, &.list-view {
137140
@media only screen and (min-width: 768px) {
@@ -168,7 +171,6 @@
168171
margin-bottom: 15px;
169172
@media only screen and (max-width: 767px) {
170173
display: inline-block;
171-
margin-left: 15px;
172174

173175
&:first-child {
174176
margin-left: 0;

0 commit comments

Comments
 (0)