Skip to content

Commit 43fa2c3

Browse files
authored
Merge pull request topcoder-archive#1017 from shubhendusaurabh/issue-994
fixed topcoder-archive#994 challenge cards in mobile
2 parents ababeda + f475776 commit 43fa2c3

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

assets/css/directives/challenge-tile.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ challenge-tile .challenge.tile-view {
111111
flex-direction: column;
112112
align-items: center;
113113
justify-content: center;
114+
padding: 12px 0;
114115
flex: 2;
115116
}
116117

@@ -280,6 +281,12 @@ challenge-tile .challenge.tile-view {
280281
}
281282

282283

284+
@media only screen and (max-width: 768px) {
285+
.active-challenge {
286+
height: auto;
287+
margin: auto;
288+
}
289+
}
283290
.completed-challenge {
284291
height: 390px;
285292
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy