mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(client): empty space below codePane after resizing classic layout (#55936)
Co-authored-by: Sem Bauke <sem@freecodecamp.org>
This commit is contained in:
@@ -182,6 +182,8 @@ const DesktopLayout = (props: DesktopLayoutProps): JSX.Element => {
|
||||
: false;
|
||||
const displayPreviewConsole =
|
||||
(projectBasedChallenge || isMultifileCertProject) && showConsole;
|
||||
const hasVerticalResizableCodePane =
|
||||
!isMultifileCertProject && !projectBasedChallenge;
|
||||
const {
|
||||
codePane,
|
||||
editorPane,
|
||||
@@ -237,8 +239,8 @@ const DesktopLayout = (props: DesktopLayoutProps): JSX.Element => {
|
||||
orientation='horizontal'
|
||||
>
|
||||
<ReflexElement
|
||||
flex={codePane.flex}
|
||||
name='codePane'
|
||||
{...(hasVerticalResizableCodePane && { flex: codePane.flex })}
|
||||
{...reflexProps}
|
||||
{...resizeProps}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user