diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 24a450382..da5275594 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -91,6 +91,7 @@ function AppContent() { // Handle node selection change const handleNodeChange = (event) => { setSelectedNode(event.target.value); + event.target.blur(); // Remove focus after selection }; return ( @@ -98,6 +99,12 @@ function AppContent() { display: 'flex', flexDirection: 'column', minHeight: '100vh', + }} + onClick={(e) => { + // Only blur if clicking the container itself, not its children + if (e.target === e.currentTarget) { + document.activeElement?.blur(); + } }}> @@ -215,26 +222,46 @@ function AppContent() { variant="outlined" size="small" sx={{ - minWidth: { xs: 120, sm: 200 }, - mr: 2, + minWidth: { xs: 48, sm: 160 }, + mr: { xs: 1, sm: 2 }, '& .MuiOutlinedInput-root': { color: 'white', - borderRadius: 2, - backgroundColor: 'rgba(255, 255, 255, 0.1)', + height: 32, + borderRadius: '8px', + textTransform: 'none', + fontSize: '0.8rem', + fontWeight: 600, + transition: 'all 0.2s ease', + boxShadow: 0, + background: 'transparent', + border: '1px solid', + borderColor: 'rgba(255, 255, 255, 0.3)', '&:hover': { - backgroundColor: 'rgba(255, 255, 255, 0.15)', + background: theme => alpha(theme.palette.primary.light, 0.1), + boxShadow: 2, + transform: 'translateY(-1px)' }, - '& .MuiOutlinedInput-notchedOutline': { - borderColor: 'rgba(255, 255, 255, 0.3)', - }, - '&:hover .MuiOutlinedInput-notchedOutline': { + '&.Mui-focused': { + background: 'transparent', borderColor: 'rgba(255, 255, 255, 0.5)', + boxShadow: 1, }, - '&.Mui-focused .MuiOutlinedInput-notchedOutline': { - borderColor: 'rgba(255, 255, 255, 0.7)', + '&:active': { + transform: 'translateY(0px)', + boxShadow: 1 }, '& .MuiSelect-icon': { color: 'rgba(255, 255, 255, 0.7)', + }, + padding: { xs: '4px 8px', sm: '4px 14px' }, + '& .MuiOutlinedInput-notchedOutline': { + border: 'none' + }, + '&:hover .MuiOutlinedInput-notchedOutline': { + border: 'none' + }, + '&.Mui-focused .MuiOutlinedInput-notchedOutline': { + border: 'none' } } }} @@ -242,40 +269,26 @@ function AppContent() {