fix(client): empty space below codePane after resizing classic layout (#55936)

Co-authored-by: Sem Bauke <sem@freecodecamp.org>
This commit is contained in:
Krzysztof G.
2024-09-16 10:52:49 +02:00
committed by GitHub
parent c00dfa13e1
commit 1666447d58
@@ -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}
>