From 064868e96ee8a1cb659dbcf228aaea3c59c89e2e Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Sat, 19 Jul 2025 14:23:28 -0700 Subject: [PATCH] Lots of mobile and desktop edit view tweaks --- .../src/components/BackstoryTextField.tsx | 10 +- frontend/src/components/ui/JobInfo.tsx | 66 +- .../src/components/{ => ui}/ResumeChat.tsx | 16 +- frontend/src/components/ui/ResumeEdit.tsx | 713 ++++++++++-------- frontend/src/components/ui/ResumeViewer.tsx | 6 +- frontend/src/components/ui/TabWithTooltip.tsx | 44 ++ 6 files changed, 505 insertions(+), 350 deletions(-) rename frontend/src/components/{ => ui}/ResumeChat.tsx (97%) create mode 100644 frontend/src/components/ui/TabWithTooltip.tsx diff --git a/frontend/src/components/BackstoryTextField.tsx b/frontend/src/components/BackstoryTextField.tsx index 2841ff7..0a16a4a 100644 --- a/frontend/src/components/BackstoryTextField.tsx +++ b/frontend/src/components/BackstoryTextField.tsx @@ -6,8 +6,9 @@ import React, { useState, useImperativeHandle, } from 'react'; -import { useTheme } from '@mui/material/styles'; +import { SxProps, useTheme } from '@mui/material/styles'; import './BackstoryTextField.css'; +import { Box } from '@mui/material'; // Define ref interface for exposed methods interface BackstoryTextFieldRef { @@ -23,11 +24,12 @@ interface BackstoryTextFieldProps { onEnter?: (value: string) => void; onChange?: (value: string) => void; style?: CSSProperties; + sx?: SxProps; } const BackstoryTextField = React.forwardRef( (props, ref) => { - const { value = '', disabled = false, placeholder, onEnter, onChange, style } = props; + const { value = '', disabled = false, placeholder, onEnter, onChange, style, sx } = props; const theme = useTheme(); const textareaRef = useRef(null); const shadowRef = useRef(null); @@ -115,7 +117,7 @@ const BackstoryTextField = React.forwardRef +