fix(client): learn layout on mobile
This commit is contained in:
@ -250,8 +250,6 @@ class ShowClassic extends Component {
|
|||||||
title={`Learn ${this.getBlockNameTitle()} | freeCodeCamp.org`}
|
title={`Learn ${this.getBlockNameTitle()} | freeCodeCamp.org`}
|
||||||
/>
|
/>
|
||||||
<Media maxWidth={MAX_MOBILE_WIDTH}>
|
<Media maxWidth={MAX_MOBILE_WIDTH}>
|
||||||
{matches =>
|
|
||||||
matches ? (
|
|
||||||
<MobileLayout
|
<MobileLayout
|
||||||
editor={this.renderEditor()}
|
editor={this.renderEditor()}
|
||||||
guideUrl={this.getGuideUrl()}
|
guideUrl={this.getGuideUrl()}
|
||||||
@ -263,7 +261,8 @@ class ShowClassic extends Component {
|
|||||||
testOutput={this.renderTestOutput()}
|
testOutput={this.renderTestOutput()}
|
||||||
videoUrl={this.getVideoUrl()}
|
videoUrl={this.getVideoUrl()}
|
||||||
/>
|
/>
|
||||||
) : (
|
</Media>
|
||||||
|
<Media minWidth={MAX_MOBILE_WIDTH + 1}>
|
||||||
<DesktopLayout
|
<DesktopLayout
|
||||||
challengeFile={this.getChallengeFile()}
|
challengeFile={this.getChallengeFile()}
|
||||||
editor={this.renderEditor()}
|
editor={this.renderEditor()}
|
||||||
@ -275,8 +274,6 @@ class ShowClassic extends Component {
|
|||||||
resizeProps={this.resizeProps}
|
resizeProps={this.resizeProps}
|
||||||
testOutput={this.renderTestOutput()}
|
testOutput={this.renderTestOutput()}
|
||||||
/>
|
/>
|
||||||
)
|
|
||||||
}
|
|
||||||
</Media>
|
</Media>
|
||||||
<CompletionModal />
|
<CompletionModal />
|
||||||
<HelpModal />
|
<HelpModal />
|
||||||
|
Reference in New Issue
Block a user