From fdf147cf24339b9e62633cc909df0a4d1c80d306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lasse=20J=C3=B8rgensen?= <28780271+lasjorg@users.noreply.github.com> Date: Mon, 5 Aug 2024 19:59:42 +0200 Subject: [PATCH] fix(client): conditional rendering of breadcrumb/spacers (#55629) Co-authored-by: Ahmad Abdolsaheb --- client/src/components/layouts/default.tsx | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/client/src/components/layouts/default.tsx b/client/src/components/layouts/default.tsx index 646944ecfcc..1958b0c7c91 100644 --- a/client/src/components/layouts/default.tsx +++ b/client/src/components/layouts/default.tsx @@ -258,18 +258,18 @@ function DefaultLayout({ /> ) : null} - {isChallenge && !examInProgress && isRenderBreadcrumb ? ( -
- -
- ) : isExSmallViewportHeight ? ( - - ) : ( - - )} + {isChallenge && + !examInProgress && + (isRenderBreadcrumb ? ( +
+ +
+ ) : ( + + ))} {fetchState.complete && children} {showFooter &&