diff --git a/01-frontend/src/helper/navbar/NavBar.tsx b/01-frontend/src/helper/navbar/NavBar.tsx index e9200cb..5e3b776 100644 --- a/01-frontend/src/helper/navbar/NavBar.tsx +++ b/01-frontend/src/helper/navbar/NavBar.tsx @@ -6,7 +6,6 @@ import IconButton from '@mui/material/IconButton'; import Typography from '@mui/material/Typography'; import Menu from '@mui/material/Menu'; import MenuIcon from '@mui/icons-material/Menu'; -import Container from '@mui/material/Container'; import Avatar from '@mui/material/Avatar'; import Button from '@mui/material/Button'; import Tooltip from '@mui/material/Tooltip'; @@ -46,17 +45,12 @@ const SearchIconWrapper = styled('div')(({ theme }) => ({ const StyledInputBase = styled(InputBase)(({ theme }) => ({ color: 'white', - width: '100%', + flexGrow: 1, + maxWidth: '100%', '& .MuiInputBase-input': { padding: theme.spacing(1, 1, 1, 0), - paddingLeft: `calc(1em + ${theme.spacing(4)})`, - transition: theme.transitions.create('width'), - [theme.breakpoints.up('sm')]: { - width: '12ch', - '&:focus': { - width: '20ch', - }, - }, + paddingLeft: `calc(1em + ${theme.spacing(3)})`, + transition: "none" }, })); @@ -92,136 +86,106 @@ export default function NavBar() { return ( - - - - - Digitaler Produktionsshop - + + + + + Digitaler Produktionsshop + + - - - - - - + + + + + + + + - + + + {pages.map(({ key, label }) => ( + + ))} + + + setAnchorElNav(null)} > {pages.map(({ key, label }) => ( handleCloseNavMenu(key)}> - {label} + {label} ))} - - + + + + + + setAnchorElUser(null)} > - DPS - - - - {pages.map((page) => ( - + {settings.map(({ key, label }) => ( + handleCloseUserMenu(key)}> + {label} + ))} - - - - - - - - - - - {settings.map(({ key, label }) => ( - handleCloseUserMenu(key)}> - {label} - - ))} - - + + - ); }