components not shown in landscape mode (MUI)

(the whole site is written in react / material UI.)

I have the problem, that neither my navbar nor my content is shown in landscape mode on mobile devices like smartphone or tablet. i’ve tested this only in my browser since the actual version is not published yet.
for example: The <AppBar/> component is shown itself, but not its real content. and the whole page with an image and text to test is not shown too.

i use those media queries to differentiate between sizes of devices and portrait or landscape:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code> const theme = useTheme();
const isPortrait = useMediaQuery("(orientation: portrait)");
const isLandscape = useMediaQuery("(orientation: landscape)");
const isMobile = useMediaQuery(theme.breakpoints.down('sm')); // Smartphones only
const isTablet = useMediaQuery(theme.breakpoints.between('sm', 'md')); // Tablets only
const isDesktop = useMediaQuery(theme.breakpoints.up('lg')); // Desktops only
</code>
<code> const theme = useTheme(); const isPortrait = useMediaQuery("(orientation: portrait)"); const isLandscape = useMediaQuery("(orientation: landscape)"); const isMobile = useMediaQuery(theme.breakpoints.down('sm')); // Smartphones only const isTablet = useMediaQuery(theme.breakpoints.between('sm', 'md')); // Tablets only const isDesktop = useMediaQuery(theme.breakpoints.up('lg')); // Desktops only </code>
 const theme = useTheme();
    const isPortrait = useMediaQuery("(orientation: portrait)");
    const isLandscape = useMediaQuery("(orientation: landscape)");
    const isMobile = useMediaQuery(theme.breakpoints.down('sm')); // Smartphones only
    const isTablet = useMediaQuery(theme.breakpoints.between('sm', 'md')); // Tablets only
    const isDesktop = useMediaQuery(theme.breakpoints.up('lg')); // Desktops only

see the exact code here:
I have a main file to display the navbars and some other files to make the desktop version or the mobile version:

navbarMain:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>import * as React from 'react';
import AppBar from '@mui/material/AppBar';
import { Box, useMediaQuery, useTheme } from "@mui/material";
import Typography from '@mui/material/Typography';
import NavbarMobile from "./NavbarMobile";
import NavbarDesktop from "./NavbarDesktop";
interface Props {
}
const NavbarMain: React.FC<Props> = () => {
const theme = useTheme();
const isPortrait = useMediaQuery("(orientation: portrait)");
const isLandscape = useMediaQuery("(orientation: landscape)");
const isMobile = useMediaQuery(theme.breakpoints.down('sm')); // Smartphones only
const isTablet = useMediaQuery(theme.breakpoints.between('sm', 'md')); // Tablets only
const isDesktop = useMediaQuery(theme.breakpoints.up('lg')); // Desktops only
return (
<AppBar position="fixed" sx={{
height: isLandscape ? "9vw" : "9vh",
backgroundColor: '#556B2F',
display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%'
}}>
<>
{isMobile && isPortrait && (
<Box sx={{ display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%', padding: 0, margin: 0}}>
<Typography variant="h4" component="div" sx={{ flexGrow: 1, color: '#FFD700', margin: "2vh" }}>
PLACEHOLDER_TITLE
</Typography>
<Box
sx={{
marginLeft: 'auto',
display: "flex",
justifyContent: "center",
alignItems: "center",
}}
>
<NavbarMobile />
</Box>
</Box>
)}
{isMobile && isLandscape && (
<Box sx={{
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
width: '100%',
padding: 0,
margin: 0,
backgroundColor: "red",
height: "20vh",
}}>
<Typography variant="h4" component="div" sx={{ flexGrow: 1, color: '#FFD700', margin: "2vh" }}>
PLACEHOLDER
</Typography>
<Box
sx={{
marginLeft: 'auto',
display: "flex",
justifyContent: "center",
alignItems: "center",
}}
>
<NavbarMobile />
</Box>
</Box>
)}
{isTablet && isPortrait && (
<Box sx={{ display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%', padding: 0, margin: 0}}>
<Typography variant="h4" component="div" sx={{ flexGrow: 1, color: '#FFD700', margin: "2vh" }}>
PLACEHOLDER
</Typography>
<Box
sx={{
marginLeft: 'auto',
display: "flex",
justifyContent: "center",
alignItems: "center",
}}
>
<NavbarMobile />
</Box>
</Box>
)}
{isTablet && isLandscape && (
<Box sx={{ display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%', padding: 0, margin: 0, }}>
<Typography variant="h4" component="div" sx={{ flexGrow: 1, color: '#FFD700', margin: "2vh" }}>
PLACEHOLDER
</Typography>
<NavbarDesktop />
</Box>
)}
{isDesktop && (
<Box sx={{ display: 'flex', flexDirection: 'row', padding: 0, margin: 0 }}>
<Typography variant="h4" component="div" sx={{ flexGrow: 1, color: '#FFD700', margin: "2vh" }}>
PLACEHOLDER
</Typography>
<NavbarDesktop />
</Box>
)}
</>
</AppBar>
);
};
export default NavbarMain;
</code>
<code>import * as React from 'react'; import AppBar from '@mui/material/AppBar'; import { Box, useMediaQuery, useTheme } from "@mui/material"; import Typography from '@mui/material/Typography'; import NavbarMobile from "./NavbarMobile"; import NavbarDesktop from "./NavbarDesktop"; interface Props { } const NavbarMain: React.FC<Props> = () => { const theme = useTheme(); const isPortrait = useMediaQuery("(orientation: portrait)"); const isLandscape = useMediaQuery("(orientation: landscape)"); const isMobile = useMediaQuery(theme.breakpoints.down('sm')); // Smartphones only const isTablet = useMediaQuery(theme.breakpoints.between('sm', 'md')); // Tablets only const isDesktop = useMediaQuery(theme.breakpoints.up('lg')); // Desktops only return ( <AppBar position="fixed" sx={{ height: isLandscape ? "9vw" : "9vh", backgroundColor: '#556B2F', display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%' }}> <> {isMobile && isPortrait && ( <Box sx={{ display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%', padding: 0, margin: 0}}> <Typography variant="h4" component="div" sx={{ flexGrow: 1, color: '#FFD700', margin: "2vh" }}> PLACEHOLDER_TITLE </Typography> <Box sx={{ marginLeft: 'auto', display: "flex", justifyContent: "center", alignItems: "center", }} > <NavbarMobile /> </Box> </Box> )} {isMobile && isLandscape && ( <Box sx={{ display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%', padding: 0, margin: 0, backgroundColor: "red", height: "20vh", }}> <Typography variant="h4" component="div" sx={{ flexGrow: 1, color: '#FFD700', margin: "2vh" }}> PLACEHOLDER </Typography> <Box sx={{ marginLeft: 'auto', display: "flex", justifyContent: "center", alignItems: "center", }} > <NavbarMobile /> </Box> </Box> )} {isTablet && isPortrait && ( <Box sx={{ display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%', padding: 0, margin: 0}}> <Typography variant="h4" component="div" sx={{ flexGrow: 1, color: '#FFD700', margin: "2vh" }}> PLACEHOLDER </Typography> <Box sx={{ marginLeft: 'auto', display: "flex", justifyContent: "center", alignItems: "center", }} > <NavbarMobile /> </Box> </Box> )} {isTablet && isLandscape && ( <Box sx={{ display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%', padding: 0, margin: 0, }}> <Typography variant="h4" component="div" sx={{ flexGrow: 1, color: '#FFD700', margin: "2vh" }}> PLACEHOLDER </Typography> <NavbarDesktop /> </Box> )} {isDesktop && ( <Box sx={{ display: 'flex', flexDirection: 'row', padding: 0, margin: 0 }}> <Typography variant="h4" component="div" sx={{ flexGrow: 1, color: '#FFD700', margin: "2vh" }}> PLACEHOLDER </Typography> <NavbarDesktop /> </Box> )} </> </AppBar> ); }; export default NavbarMain; </code>
import * as React from 'react';
import AppBar from '@mui/material/AppBar';
import { Box, useMediaQuery, useTheme } from "@mui/material";
import Typography from '@mui/material/Typography';
import NavbarMobile from "./NavbarMobile";
import NavbarDesktop from "./NavbarDesktop";

interface Props {
}

const NavbarMain: React.FC<Props> = () => {
    const theme = useTheme();
    const isPortrait = useMediaQuery("(orientation: portrait)");
    const isLandscape = useMediaQuery("(orientation: landscape)");
    const isMobile = useMediaQuery(theme.breakpoints.down('sm')); // Smartphones only
    const isTablet = useMediaQuery(theme.breakpoints.between('sm', 'md')); // Tablets only
    const isDesktop = useMediaQuery(theme.breakpoints.up('lg')); // Desktops only

    return (
        <AppBar position="fixed" sx={{
            height: isLandscape ? "9vw" : "9vh",
            backgroundColor: '#556B2F',
            display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%'
        }}>
                <>
                    {isMobile && isPortrait && (
                        <Box sx={{ display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%', padding: 0, margin: 0}}>
                            <Typography variant="h4" component="div" sx={{ flexGrow: 1, color: '#FFD700', margin: "2vh" }}>
                                PLACEHOLDER_TITLE
                            </Typography>
                            <Box
                                sx={{
                                    marginLeft: 'auto',
                                    display: "flex",
                                    justifyContent: "center",
                                    alignItems: "center",
                                }}
                            >
                                <NavbarMobile />
                            </Box>
                        </Box>
                    )}
                    {isMobile && isLandscape && (
                       
                        <Box sx={{
                            display: 'flex',
                            flexDirection: 'row',
                            alignItems: 'center',
                            width: '100%',
                            padding: 0,
                            margin: 0,
                            backgroundColor: "red",
                            height: "20vh",
                        }}>
                            <Typography variant="h4" component="div" sx={{ flexGrow: 1, color: '#FFD700', margin: "2vh" }}>
                                PLACEHOLDER
                            </Typography>
                            <Box
                                sx={{
                                    marginLeft: 'auto',
                                    display: "flex",
                                    justifyContent: "center",
                                    alignItems: "center",
                                }}
                            >
                                <NavbarMobile />
                            </Box>
                        </Box>
                    )}
                    {isTablet && isPortrait && (
                        
                        <Box sx={{ display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%', padding: 0, margin: 0}}>
                            <Typography variant="h4" component="div" sx={{ flexGrow: 1, color: '#FFD700', margin: "2vh" }}>
                                PLACEHOLDER
                            </Typography>
                            <Box
                                sx={{
                                    marginLeft: 'auto',
                                    display: "flex",
                                    justifyContent: "center",
                                    alignItems: "center",
                                }}
                            >
                                <NavbarMobile />
                            </Box>
                        </Box>
                    )}
                    {isTablet && isLandscape && (
                       
                        <Box sx={{ display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%', padding: 0, margin: 0, }}>
                            <Typography variant="h4" component="div" sx={{ flexGrow: 1, color: '#FFD700', margin: "2vh" }}>
                                PLACEHOLDER
                            </Typography>
                            <NavbarDesktop />
                        </Box>
                    )}
                    {isDesktop && (
                       
                        <Box sx={{ display: 'flex', flexDirection: 'row', padding: 0, margin: 0 }}>
                            <Typography variant="h4" component="div" sx={{ flexGrow: 1, color: '#FFD700', margin: "2vh" }}>
                                PLACEHOLDER
                            </Typography>
                            <NavbarDesktop />
                        </Box>
                    )}
                </>
        </AppBar>
    );
};

export default NavbarMain;

navBarMobile:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>import * as React from 'react';
import Toolbar from "@mui/material/Toolbar";
import {Chip, Dropdown, Menu, MenuButton, MenuItem} from "@mui/joy";
import {Link} from "react-router-dom";
import MenuOutlinedIcon from '@mui/icons-material/MenuOutlined';
import {Divider, withStyles} from "@mui/material";
import styled from "@emotion/styled";
interface Props {
}
const OwnMenuItem = styled(MenuItem)({
justifyContent: "center", // Center align items horizontally
textAlign: "center", // Center align text
margin: "5%",
});
const OwnMenu = styled(Menu)({
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
textAlign: 'center',
zIndex: 10000,
borderColor: '#FFD700',
backgroundColor: '#556B2F',
width: '45vw',
});
const LinkStyled = styled(Link)({
textDecoration: 'none',
color: '#FFD700',
width: '100%',
height: '100%',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
textAlign: 'center',
flexGrow: 1,
});
const NavbarMobile: React.FC<Props> = () => {
return (
<Toolbar sx={{
display: "flex",
alignItems: "center",
justifyContent: "center",
flexDirection: "column",
}}>
<Dropdown>
<MenuButton sx={{borderColor: '#FFD700'}}>
<MenuOutlinedIcon sx={{color: '#FFD700'}}></MenuOutlinedIcon>
</MenuButton>
<OwnMenu >
<OwnMenuItem sx={{
borderColor: '#FFD700',
width: "90%",
textAlign: "center",
display: "flex",
justifyContent: "center"
}}>
<Link to="/" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Home</Link>
</OwnMenuItem>
<Divider
sx={{
borderColor: '#FFD700',
borderWidth: '1px',
width: '80%',
'&::before, &::after': {
borderColor: '#FFD700',
borderWidth: '1px',
}
}}
>
<Chip variant="soft" sx={{backgroundColor: "#475927", color: '#FFD700'}}>
. Zeit .
</Chip>
</Divider>
<OwnMenuItem sx={{
borderColor: '#FFD700',
width: "90%",
textAlign: "center",
display: "flex",
justifyContent: "center"
}}>
<Link to="/zeit/vergangenheit"
style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Vergangenheit</Link>
</OwnMenuItem>
<OwnMenuItem sx={{
borderColor: '#FFD700',
width: "90%",
textAlign: "center",
display: "flex",
justifyContent: "center"
}}>
<Link to="/zeit/aktuell" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Gegenwart</Link>
</OwnMenuItem>
<OwnMenuItem sx={{
borderColor: '#FFD700',
width: "90%",
textAlign: "center",
display: "flex",
justifyContent: "center"
}}>
<Link to="/zeit/zukunft" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Zukunft</Link>
</OwnMenuItem>
<Divider sx={{borderColor: '#FFD700', width: "80%"}}>
</Divider>
<OwnMenuItem sx={{
borderColor: '#FFD700',
width: "90%",
textAlign: "center",
display: "flex",
justifyContent: "center"
}}>
<Link to="/studio" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Studio</Link>
</OwnMenuItem>
<OwnMenuItem sx={{
borderColor: '#FFD700',
width: "90%",
textAlign: "center",
display: "flex",
justifyContent: "center"
}}>
<Link to="/live" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Live</Link>
</OwnMenuItem>
</OwnMenu>
</Dropdown>
</Toolbar>
);
};
export default NavbarMobile;
</code>
<code>import * as React from 'react'; import Toolbar from "@mui/material/Toolbar"; import {Chip, Dropdown, Menu, MenuButton, MenuItem} from "@mui/joy"; import {Link} from "react-router-dom"; import MenuOutlinedIcon from '@mui/icons-material/MenuOutlined'; import {Divider, withStyles} from "@mui/material"; import styled from "@emotion/styled"; interface Props { } const OwnMenuItem = styled(MenuItem)({ justifyContent: "center", // Center align items horizontally textAlign: "center", // Center align text margin: "5%", }); const OwnMenu = styled(Menu)({ display: 'flex', flexDirection: 'column', justifyContent: 'center', alignItems: 'center', textAlign: 'center', zIndex: 10000, borderColor: '#FFD700', backgroundColor: '#556B2F', width: '45vw', }); const LinkStyled = styled(Link)({ textDecoration: 'none', color: '#FFD700', width: '100%', height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center', textAlign: 'center', flexGrow: 1, }); const NavbarMobile: React.FC<Props> = () => { return ( <Toolbar sx={{ display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", }}> <Dropdown> <MenuButton sx={{borderColor: '#FFD700'}}> <MenuOutlinedIcon sx={{color: '#FFD700'}}></MenuOutlinedIcon> </MenuButton> <OwnMenu > <OwnMenuItem sx={{ borderColor: '#FFD700', width: "90%", textAlign: "center", display: "flex", justifyContent: "center" }}> <Link to="/" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Home</Link> </OwnMenuItem> <Divider sx={{ borderColor: '#FFD700', borderWidth: '1px', width: '80%', '&::before, &::after': { borderColor: '#FFD700', borderWidth: '1px', } }} > <Chip variant="soft" sx={{backgroundColor: "#475927", color: '#FFD700'}}> . Zeit . </Chip> </Divider> <OwnMenuItem sx={{ borderColor: '#FFD700', width: "90%", textAlign: "center", display: "flex", justifyContent: "center" }}> <Link to="/zeit/vergangenheit" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Vergangenheit</Link> </OwnMenuItem> <OwnMenuItem sx={{ borderColor: '#FFD700', width: "90%", textAlign: "center", display: "flex", justifyContent: "center" }}> <Link to="/zeit/aktuell" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Gegenwart</Link> </OwnMenuItem> <OwnMenuItem sx={{ borderColor: '#FFD700', width: "90%", textAlign: "center", display: "flex", justifyContent: "center" }}> <Link to="/zeit/zukunft" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Zukunft</Link> </OwnMenuItem> <Divider sx={{borderColor: '#FFD700', width: "80%"}}> </Divider> <OwnMenuItem sx={{ borderColor: '#FFD700', width: "90%", textAlign: "center", display: "flex", justifyContent: "center" }}> <Link to="/studio" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Studio</Link> </OwnMenuItem> <OwnMenuItem sx={{ borderColor: '#FFD700', width: "90%", textAlign: "center", display: "flex", justifyContent: "center" }}> <Link to="/live" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Live</Link> </OwnMenuItem> </OwnMenu> </Dropdown> </Toolbar> ); }; export default NavbarMobile; </code>
import * as React from 'react';
import Toolbar from "@mui/material/Toolbar";
import {Chip, Dropdown, Menu, MenuButton, MenuItem} from "@mui/joy";
import {Link} from "react-router-dom";
import MenuOutlinedIcon from '@mui/icons-material/MenuOutlined';
import {Divider, withStyles} from "@mui/material";
import styled from "@emotion/styled";

interface Props {
}


const OwnMenuItem = styled(MenuItem)({
    justifyContent: "center", // Center align items horizontally
    textAlign: "center", // Center align text
    margin: "5%",
});

const OwnMenu = styled(Menu)({
    display: 'flex',
    flexDirection: 'column',
    justifyContent: 'center',
    alignItems: 'center',
    textAlign: 'center',
    zIndex: 10000,
    borderColor: '#FFD700',
    backgroundColor: '#556B2F',
    width: '45vw',
});

const LinkStyled = styled(Link)({
    textDecoration: 'none',
    color: '#FFD700',
    width: '100%',
    height: '100%',
    display: 'flex',
    justifyContent: 'center',
    alignItems: 'center',
    textAlign: 'center', 
    flexGrow: 1,
});


const NavbarMobile: React.FC<Props> = () => {
    return (
        <Toolbar sx={{
            display: "flex",
            alignItems: "center",
            justifyContent: "center",
            flexDirection: "column",
        }}>

            <Dropdown>
                <MenuButton sx={{borderColor: '#FFD700'}}>
                    <MenuOutlinedIcon sx={{color: '#FFD700'}}></MenuOutlinedIcon>
                </MenuButton>

                <OwnMenu >
                    <OwnMenuItem sx={{
                        borderColor: '#FFD700',
                        width: "90%",
                        textAlign: "center",
                        display: "flex",
                        justifyContent: "center" 
                    }}>
                        <Link to="/" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Home</Link>
                    </OwnMenuItem>

                    <Divider
                        sx={{
                            borderColor: '#FFD700',
                            borderWidth: '1px',
                            width: '80%',
                            '&::before, &::after': {
                                borderColor: '#FFD700',
                                borderWidth: '1px',
                            }
                        }}
                    >
                        <Chip variant="soft" sx={{backgroundColor: "#475927", color: '#FFD700'}}>
                              .  Zeit  .
                        </Chip>
                    </Divider>

                    <OwnMenuItem sx={{
                        borderColor: '#FFD700',
                        width: "90%",
                        textAlign: "center",
                        display: "flex",
                        justifyContent: "center" 
                    }}>
                        <Link to="/zeit/vergangenheit"
                              style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Vergangenheit</Link>
                    </OwnMenuItem>

                    <OwnMenuItem sx={{
                        borderColor: '#FFD700',
                        width: "90%",
                        textAlign: "center",
                        display: "flex",
                        justifyContent: "center"
                    }}>
                        <Link to="/zeit/aktuell" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Gegenwart</Link>
                    </OwnMenuItem>

                    <OwnMenuItem sx={{
                        borderColor: '#FFD700',
                        width: "90%",
                        textAlign: "center",
                        display: "flex",
                        justifyContent: "center"
                    }}>
                        <Link to="/zeit/zukunft" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Zukunft</Link>
                    </OwnMenuItem>

                    <Divider sx={{borderColor: '#FFD700', width: "80%"}}>
                    </Divider>

                    <OwnMenuItem sx={{
                        borderColor: '#FFD700',
                        width: "90%",
                        textAlign: "center",
                        display: "flex",
                        justifyContent: "center"
                    }}>
                        <Link to="/studio" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Studio</Link>
                    </OwnMenuItem>

                    <OwnMenuItem sx={{
                        borderColor: '#FFD700',
                        width: "90%",
                        textAlign: "center",
                        display: "flex",
                        justifyContent: "center"
                    }}>
                        <Link to="/live" style={{textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Live</Link>
                    </OwnMenuItem>
                </OwnMenu>
            </Dropdown>
        </Toolbar>
    );
};

export default NavbarMobile;

navBarDesktop:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>import * as React from 'react';
import Toolbar from "@mui/material/Toolbar";
import {Dropdown, Menu, MenuButton, MenuItem} from "@mui/joy";
import {Link} from "react-router-dom";
interface Props {}
const NavbarDesktop: React.FC<Props> = () => {
return (
<Toolbar sx={{alignItems: "left", justifyContent: "left"}}>
<Dropdown >
<MenuButton sx={{margin: "10px", borderColor: '#FFD700', width: "5vw", padding: 0}}>
<Link to="/" style={{ textDecoration: 'none', color: '#FFD700' , width: "100%", height: "100%"}}>Home</Link>
</MenuButton>
</Dropdown>
<Dropdown>
<MenuButton sx={{margin: "10px", borderColor: '#FFD700',color: '#FFD700', width: "5vw", padding: 0 }}>Zeit</MenuButton>
<Menu sx={{zIndex: 10000, borderColor: '#FFD700',backgroundColor: '#556B2F'}}>
<MenuItem sx={{margin: "5px"}}>
<Link to="/zeit/vergangenheit" style={{ textDecoration: 'none', color: '#FFD700' , width: "100%", height: "100%"}}>Vergangenheit</Link>
</MenuItem>
<MenuItem sx={{margin: "5px"}}>
<Link to="/zeit/aktuell" style={{ textDecoration: 'none', color: '#FFD700' , width: "100%", height: "100%"}}>Aktuell</Link>
</MenuItem >
<MenuItem sx={{margin: "5px"}}>
<Link to="/zeit/zukunft" style={{ textDecoration: 'none', color: '#FFD700' , width: "100%", height: "100%"}}>Zukunft</Link>
</MenuItem>
</Menu>
</Dropdown>
<Dropdown>
<MenuButton sx={{margin: "10px", borderColor: '#FFD700', width: "5vw", padding: 0}}>
<Link to="/studio" style={{ textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Studio</Link>
</MenuButton>
</Dropdown>
<Dropdown>
<MenuButton sx={{margin: "10px", borderColor: '#FFD700', width: "5vw", padding: 0}}>
<Link to="/live" style={{ textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Live</Link>
</MenuButton>
</Dropdown>
</Toolbar>
);
};
export default NavbarDesktop;
</code>
<code>import * as React from 'react'; import Toolbar from "@mui/material/Toolbar"; import {Dropdown, Menu, MenuButton, MenuItem} from "@mui/joy"; import {Link} from "react-router-dom"; interface Props {} const NavbarDesktop: React.FC<Props> = () => { return ( <Toolbar sx={{alignItems: "left", justifyContent: "left"}}> <Dropdown > <MenuButton sx={{margin: "10px", borderColor: '#FFD700', width: "5vw", padding: 0}}> <Link to="/" style={{ textDecoration: 'none', color: '#FFD700' , width: "100%", height: "100%"}}>Home</Link> </MenuButton> </Dropdown> <Dropdown> <MenuButton sx={{margin: "10px", borderColor: '#FFD700',color: '#FFD700', width: "5vw", padding: 0 }}>Zeit</MenuButton> <Menu sx={{zIndex: 10000, borderColor: '#FFD700',backgroundColor: '#556B2F'}}> <MenuItem sx={{margin: "5px"}}> <Link to="/zeit/vergangenheit" style={{ textDecoration: 'none', color: '#FFD700' , width: "100%", height: "100%"}}>Vergangenheit</Link> </MenuItem> <MenuItem sx={{margin: "5px"}}> <Link to="/zeit/aktuell" style={{ textDecoration: 'none', color: '#FFD700' , width: "100%", height: "100%"}}>Aktuell</Link> </MenuItem > <MenuItem sx={{margin: "5px"}}> <Link to="/zeit/zukunft" style={{ textDecoration: 'none', color: '#FFD700' , width: "100%", height: "100%"}}>Zukunft</Link> </MenuItem> </Menu> </Dropdown> <Dropdown> <MenuButton sx={{margin: "10px", borderColor: '#FFD700', width: "5vw", padding: 0}}> <Link to="/studio" style={{ textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Studio</Link> </MenuButton> </Dropdown> <Dropdown> <MenuButton sx={{margin: "10px", borderColor: '#FFD700', width: "5vw", padding: 0}}> <Link to="/live" style={{ textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Live</Link> </MenuButton> </Dropdown> </Toolbar> ); }; export default NavbarDesktop; </code>
import * as React from 'react';
import Toolbar from "@mui/material/Toolbar";
import {Dropdown, Menu, MenuButton, MenuItem} from "@mui/joy";
import {Link} from "react-router-dom";

interface Props {}

const NavbarDesktop: React.FC<Props> = () => {
    return (
        <Toolbar sx={{alignItems: "left", justifyContent: "left"}}>
            <Dropdown >
                <MenuButton sx={{margin: "10px", borderColor: '#FFD700', width: "5vw", padding: 0}}>
                    <Link to="/" style={{ textDecoration: 'none', color: '#FFD700' , width: "100%", height: "100%"}}>Home</Link>
                </MenuButton>
            </Dropdown>
            <Dropdown>
                <MenuButton sx={{margin: "10px", borderColor: '#FFD700',color: '#FFD700', width: "5vw", padding: 0  }}>Zeit</MenuButton>
                <Menu sx={{zIndex: 10000, borderColor: '#FFD700',backgroundColor: '#556B2F'}}>
                    <MenuItem sx={{margin: "5px"}}>
                        <Link to="/zeit/vergangenheit" style={{ textDecoration: 'none', color:  '#FFD700' , width: "100%", height: "100%"}}>Vergangenheit</Link>
                    </MenuItem>
                    <MenuItem sx={{margin: "5px"}}>
                        <Link to="/zeit/aktuell" style={{ textDecoration: 'none', color:  '#FFD700' , width: "100%", height: "100%"}}>Aktuell</Link>
                    </MenuItem >
                    <MenuItem sx={{margin: "5px"}}>
                        <Link to="/zeit/zukunft" style={{ textDecoration: 'none', color: '#FFD700' , width: "100%", height: "100%"}}>Zukunft</Link>
                    </MenuItem>
                </Menu>
            </Dropdown>
            <Dropdown>
                <MenuButton sx={{margin: "10px", borderColor: '#FFD700', width: "5vw", padding: 0}}>
                    <Link to="/studio" style={{ textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Studio</Link>
                </MenuButton>
            </Dropdown>
            <Dropdown>
                <MenuButton sx={{margin: "10px", borderColor: '#FFD700', width: "5vw", padding: 0}}>
                    <Link to="/live" style={{ textDecoration: 'none', color: '#FFD700', width: "100%", height: "100%"}}>Live</Link>
                </MenuButton>
            </Dropdown>
        </Toolbar>
    );
};

export default NavbarDesktop;

this was the code of the whole navbar.

thanks for your help

kind regards

ive tried several things, but nothing really functioned.

could it be the case, that this is only a problem with the browser, resp. the “inspect” stuff of the browser? that would be strange but possible.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật