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 */, },