Fix Item Click
This commit is contained in:
@@ -147,7 +147,9 @@ export default function NavBar() {
|
|||||||
sx={{
|
sx={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
justifyContent: 'space-between',
|
justifyContent: 'space-between',
|
||||||
px: 3
|
alignItems: 'center', // <--- HIER hinzugefügt
|
||||||
|
px: 3,
|
||||||
|
minHeight: { xs: 56, sm: 64 }, // optional: Standardhöhe für bessere Zentrierung
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box sx={{display: "flex", alignItems: "center", minWidth: "0px"}}>
|
<Box sx={{display: "flex", alignItems: "center", minWidth: "0px"}}>
|
||||||
@@ -155,6 +157,8 @@ export default function NavBar() {
|
|||||||
src={logo}
|
src={logo}
|
||||||
alt="Logo"
|
alt="Logo"
|
||||||
className="navbar-logo"
|
className="navbar-logo"
|
||||||
|
style={{ display: "block", height: 40, marginRight: 12, objectFit: "contain" }} // optional: Höhe anpassen
|
||||||
|
onClick={() => navigate('/')}
|
||||||
/>
|
/>
|
||||||
<Typography
|
<Typography
|
||||||
variant="h6"
|
variant="h6"
|
||||||
@@ -167,6 +171,9 @@ export default function NavBar() {
|
|||||||
letterSpacing: ".3rem",
|
letterSpacing: ".3rem",
|
||||||
color: "white",
|
color: "white",
|
||||||
textDecoration: "none",
|
textDecoration: "none",
|
||||||
|
display: "flex",
|
||||||
|
alignItems: "center", // <--- HIER hinzugefügt
|
||||||
|
height: "100%", // optional
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Digitaler Produktionsshop
|
Digitaler Produktionsshop
|
||||||
@@ -174,12 +181,25 @@ export default function NavBar() {
|
|||||||
|
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Box sx={{flexGrow: 1, display: "flex", justifyContent: "center", px: 3, zIndex: 100000}}>
|
<Box sx={{
|
||||||
|
flexGrow: 1,
|
||||||
|
display: "flex",
|
||||||
|
justifyContent: "center",
|
||||||
|
alignItems: "center", // <--- HIER hinzugefügt
|
||||||
|
px: 3,
|
||||||
|
zIndex: 100000
|
||||||
|
}}>
|
||||||
<Autocomplete
|
<Autocomplete
|
||||||
sx={{flexGrow: 1, minWidth: "150px", maxWidth: "600px"}}
|
sx={{
|
||||||
|
flexGrow: 1,
|
||||||
|
minWidth: "150px",
|
||||||
|
maxWidth: "600px",
|
||||||
|
display: "flex",
|
||||||
|
alignItems: "center" // <--- HIER hinzugefügt
|
||||||
|
}}
|
||||||
freeSolo
|
freeSolo
|
||||||
options={itemNames} // Item-Namen für Autocomplete
|
options={itemNames}
|
||||||
onInputChange={handleSearch} // Suche auslösen
|
onInputChange={handleSearch}
|
||||||
renderInput={(params) => (
|
renderInput={(params) => (
|
||||||
<TextField
|
<TextField
|
||||||
{...params}
|
{...params}
|
||||||
|
|||||||
Reference in New Issue
Block a user