From a51606e848022b0419c7d80c7e1a6348e9dbdd80 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Wed, 16 Jul 2025 18:52:55 -0700 Subject: [PATCH] Resize chat due to headers on mobile --- frontend/src/pages/CandidateChatPage.tsx | 32 +++++++++++++++++++----- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/CandidateChatPage.tsx b/frontend/src/pages/CandidateChatPage.tsx index 7bcfba4..bf0ec4d 100644 --- a/frontend/src/pages/CandidateChatPage.tsx +++ b/frontend/src/pages/CandidateChatPage.tsx @@ -294,15 +294,33 @@ const CandidateChatPage = forwardRef flexDirection: 'column', flexGrow: 1, p: 0, - height: '100%', + maxHeight: '100%', position: 'relative', }} > {isMobile && ( - - } label="Resume" /> - } label="Chat" /> - + + + } + label="Resume" + /> + } + label="Chat" + /> + + )} height: '100%' /* Restrict to main-container's height */, width: '100%', minHeight: 0 /* Prevent flex overflow */, - maxHeight: '100%', + maxHeight: isMobile + ? 'calc(100% - 144px)' + : '100%' /* Adjust for header/footer on mobile */, '& > *:not(.Scrollable)': { flexShrink: 0 /* Prevent shrinking */, },