fix: unneeded scrollbar multi file editor (#42411)
* fix: multi editor unneeded scrollbar
This commit is contained in:
@ -84,10 +84,15 @@ class DesktopLayout extends Component {
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<ReflexContainer className='desktop-layout' orientation='horizontal'>
|
||||
{projectBasedChallenge && (
|
||||
<ActionRow switchDisplayTab={this.switchDisplayTab} {...this.state} />
|
||||
<ActionRow
|
||||
switchDisplayTab={this.switchDisplayTab}
|
||||
{...this.state}
|
||||
/>
|
||||
)}
|
||||
<ReflexContainer className='desktop-layout' orientation='vertical'>
|
||||
<ReflexElement flex={8} {...reflexProps} {...resizeProps}>
|
||||
<ReflexContainer orientation='vertical'>
|
||||
{!projectBasedChallenge && (
|
||||
<ReflexElement
|
||||
flex={instructionPane.flex}
|
||||
@ -106,18 +111,21 @@ class DesktopLayout extends Component {
|
||||
name='editorPane'
|
||||
{...resizeProps}
|
||||
>
|
||||
{challengeFile && showUpcomingChanges && !hasEditableBoundries && (
|
||||
<EditorTabs />
|
||||
)}
|
||||
{challengeFile &&
|
||||
showUpcomingChanges &&
|
||||
!hasEditableBoundries && <EditorTabs />}
|
||||
{challengeFile && (
|
||||
<ReflexContainer key={challengeFile.key} orientation='horizontal'>
|
||||
<ReflexContainer
|
||||
key={challengeFile.key}
|
||||
orientation='horizontal'
|
||||
>
|
||||
<ReflexElement
|
||||
flex={codePane.flex}
|
||||
name='codePane'
|
||||
{...reflexProps}
|
||||
{...resizeProps}
|
||||
>
|
||||
{<Fragment>{editor}</Fragment>}
|
||||
<Fragment>{editor}</Fragment>
|
||||
</ReflexElement>
|
||||
{isConsoleDisplayable && (
|
||||
<ReflexSplitter propagate={true} {...resizeProps} />
|
||||
@ -148,6 +156,8 @@ class DesktopLayout extends Component {
|
||||
</ReflexElement>
|
||||
)}
|
||||
</ReflexContainer>
|
||||
</ReflexElement>
|
||||
</ReflexContainer>
|
||||
</Fragment>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user