File tree Expand file tree Collapse file tree 4 files changed +28
-23
lines changed
components/challenge-detail/Submissions
containers/challenge-detail Expand file tree Collapse file tree 4 files changed +28
-23
lines changed Original file line number Diff line number Diff line change 94
94
flex-direction : column ;
95
95
border-top : 1px solid #e9e9e9 ;
96
96
border-bottom : 0 ;
97
- margin-left : 16 px ;
97
+ margin-left : 0 ;
98
98
margin-top : 25px ;
99
- margin-right : 34 px ;
99
+ margin-right : 15 px ;
100
100
}
101
101
102
102
& .no-border {
Original file line number Diff line number Diff line change @@ -445,22 +445,26 @@ class SubmissionsComponent extends React.Component {
445
445
446
446
return (
447
447
< div styleName = { `container dev ${ isMM ? 'mm' : 'non-mm' } ` } >
448
- < div styleName = "view-as" >
449
- < span styleName = "title" > View as</ span >
450
- {
451
- viewAsTable ? (
452
- < React . Fragment >
453
- < ViewAsTableActive styleName = "table-icon" onClick = { ( ) => setViewAsTable ( true ) } />
454
- < ViewAsListInactive styleName = "list-icon" onClick = { ( ) => setViewAsTable ( false ) } />
455
- </ React . Fragment >
456
- ) : (
457
- < React . Fragment >
458
- < ViewAsTableInactive styleName = "table-icon" onClick = { ( ) => setViewAsTable ( true ) } />
459
- < ViewAsListActive styleName = "list-icon" onClick = { ( ) => setViewAsTable ( false ) } />
460
- </ React . Fragment >
461
- )
462
- }
463
- </ div >
448
+ {
449
+ isMM ? (
450
+ < div styleName = "view-as" >
451
+ < span styleName = "title" > View as</ span >
452
+ {
453
+ viewAsTable ? (
454
+ < React . Fragment >
455
+ < ViewAsListInactive styleName = "list-icon" onClick = { ( ) => setViewAsTable ( false ) } />
456
+ < ViewAsTableActive styleName = "table-icon" onClick = { ( ) => setViewAsTable ( true ) } />
457
+ </ React . Fragment >
458
+ ) : (
459
+ < React . Fragment >
460
+ < ViewAsListActive styleName = "list-icon" onClick = { ( ) => setViewAsTable ( false ) } />
461
+ < ViewAsTableInactive styleName = "table-icon" onClick = { ( ) => setViewAsTable ( true ) } />
462
+ </ React . Fragment >
463
+ )
464
+ }
465
+ </ div >
466
+ ) : null
467
+ }
464
468
< div styleName = { `${ viewAsTable ? 'view-as-table' : '' } ` } >
465
469
{
466
470
! isMM && (
Original file line number Diff line number Diff line change 348
348
349
349
@include xs-to-sm {
350
350
flex-direction : column ;
351
- margin : 0 16px ;
351
+ margin : 0 16px 0 0 ;
352
352
border-top : 1px solid #e9e9e9 ;
353
353
}
354
354
}
600
600
}
601
601
602
602
.table-icon {
603
- margin-right : 10 px ;
603
+ margin-right : 15 px ;
604
604
}
605
605
606
606
.list-icon {
607
- margin-right : 15 px ;
607
+ margin-right : 10 px ;
608
608
}
609
609
}
610
610
611
611
.view-as-table {
612
612
overflow-y : scroll ;
613
613
margin-top : 20px ;
614
+ margin-right : 15px ;
614
615
}
Original file line number Diff line number Diff line change @@ -483,7 +483,7 @@ class ChallengeDetailPageContainer extends React.Component {
483
483
submissionEnded = { submissionEnded }
484
484
mySubmissions = { challenge . isRegistered ? mySubmissions : [ ] }
485
485
openForRegistrationChallenges = { openForRegistrationChallenges }
486
- viewAsTable = { viewAsTable }
486
+ viewAsTable = { viewAsTable && isMM }
487
487
onSort = { ( currenctSelected , sort ) => {
488
488
if ( currenctSelected === 'submissions' ) {
489
489
this . setState ( { submissionsSort : sort } ) ;
@@ -571,7 +571,7 @@ class ChallengeDetailPageContainer extends React.Component {
571
571
isLegacyMM = { isLegacyMM }
572
572
submissionEnded = { submissionEnded }
573
573
challengesUrl = { challengesUrl }
574
- viewAsTable = { viewAsTable }
574
+ viewAsTable = { viewAsTable && isMM }
575
575
setViewAsTable = { value => this . setState ( { viewAsTable : value } ) }
576
576
/>
577
577
)
You can’t perform that action at this time.
0 commit comments