From ac3eccd61d72fc605e81014fbfdc29495fb87bbd Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Wed, 16 Jul 2025 17:29:09 -0700 Subject: [PATCH] Improved QnA --- frontend/src/components/BackstoryQuery.tsx | 1 - .../src/components/BackstoryTextField.tsx | 9 ++-- frontend/src/pages/CandidateChatPage.tsx | 42 +++++++++++++------ 3 files changed, 35 insertions(+), 17 deletions(-) diff --git a/frontend/src/components/BackstoryQuery.tsx b/frontend/src/components/BackstoryQuery.tsx index f2ad2bf..ca79024 100644 --- a/frontend/src/components/BackstoryQuery.tsx +++ b/frontend/src/components/BackstoryQuery.tsx @@ -23,7 +23,6 @@ const BackstoryQuery = (props: BackstoryQueryInterface): JSX.Element => { sx={{ color: theme => theme.palette.custom.highlight, // Golden Ochre (#D4A017) borderColor: theme => theme.palette.custom.highlight, - m: 1, }} size="small" onClick={(): void => { diff --git a/frontend/src/components/BackstoryTextField.tsx b/frontend/src/components/BackstoryTextField.tsx index 2841ff7..cb4b8f0 100644 --- a/frontend/src/components/BackstoryTextField.tsx +++ b/frontend/src/components/BackstoryTextField.tsx @@ -8,6 +8,7 @@ import React, { } from 'react'; import { useTheme } from '@mui/material/styles'; import './BackstoryTextField.css'; +import Box from '@mui/material/Box'; // Define ref interface for exposed methods interface BackstoryTextFieldRef { @@ -100,7 +101,7 @@ const BackstoryTextField = React.forwardRef + + {/* Main textarea for user input */} + {/* Shadow textarea for height calculation */}