diff --git a/frontend/src/NewApp/Components/CandidateInfo.tsx b/frontend/src/NewApp/Components/CandidateInfo.tsx index 8d014ce..2dc06ad 100644 --- a/frontend/src/NewApp/Components/CandidateInfo.tsx +++ b/frontend/src/NewApp/Components/CandidateInfo.tsx @@ -1,5 +1,7 @@ import React from 'react'; import { Box, Link, Typography, Avatar, Paper, Grid, Chip, SxProps } from '@mui/material'; +import { useMediaQuery } from '@mui/material'; +import { useTheme } from '@mui/material/styles'; import { styled } from '@mui/material/styles'; import { Route, Routes, useLocation, useNavigate } from 'react-router-dom'; import { UserInfo, useUser } from "./UserContext"; @@ -31,6 +33,9 @@ const CandidateInfo: React.FC = (props: CandidateInfoProps) } = props; const location = useLocation(); const navigate = useNavigate(); + const theme = useTheme(); + const isMobile = useMediaQuery(theme.breakpoints.down('md')); + // Format RAG content size (e.g., if it's in bytes, convert to KB/MB) const formatRagSize = (size: number): string => { if (size < 1000) return `${size} RAG elements`; @@ -60,9 +65,9 @@ const CandidateInfo: React.FC = (props: CandidateInfoProps) - .MuiTypography-root": { m: 0 } }}> + .MuiTypography-root": { m: 0 } }}> {action !== '' && {action}} - + {view.full_name} diff --git a/frontend/src/NewApp/Components/Conversation.css b/frontend/src/NewApp/Components/Conversation.css index a625838..e8414b0 100644 --- a/frontend/src/NewApp/Components/Conversation.css +++ b/frontend/src/NewApp/Components/Conversation.css @@ -9,7 +9,6 @@ width: 100%; margin: 0 auto; overflow-y: auto; - height: 100%; justify-content: center; }