Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navbar blank button no longer visible on smaller screen #117

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Navbar blank button no longer visible
  • Loading branch information
burkocyigit committed Jul 22, 2024
commit 6304124f753ebe55e619dbf6627771d84a07efa3
33 changes: 16 additions & 17 deletions frontend/src/layout/components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ function ResponsiveAppBar() {
return (
<AppBar
// position="static" // removed due to incorrect appreance
sx={{ backgroundColor: "#0A3B7A", boxShadow: "none" }}
>
sx={{ backgroundColor: "#0A3B7A", boxShadow: "none" }}>
<Container maxWidth="xl">
<Toolbar disableGutters variant="dense" sx={{ mx: 7 }}>
<CircleIcon
Expand All @@ -51,8 +50,7 @@ function ResponsiveAppBar() {
fontWeight: 700,
color: "inherit",
textDecoration: "none",
}}
>
}}>
{themeConfig.projectName}
</Typography>

Expand All @@ -76,21 +74,24 @@ function ResponsiveAppBar() {
fontWeight: 700,
color: "inherit",
textDecoration: "none",
}}
>
}}>
{themeConfig.projectName}
</Typography>

<Box sx={{ flexGrow: 0, display: { xs: "flex", mdlg: "none" } }}>
<Box
sx={{
flexGrow: 0,
display: { xs: "flex", mdlg: "none" },
flexDirection: "column",
}}>
<IconButton
size="large"
aria-label="account of current user"
aria-controls="menu-appbar"
aria-haspopup="true"
s
onClick={handleOpenNavMenu}
color="inherit"
>
color="inherit">
<MenuIcon />
</IconButton>
<Menu
Expand All @@ -111,13 +112,12 @@ function ResponsiveAppBar() {
display: { xs: "block", mdlg: "none" },
mt: "1px",
"& .MuiMenu-paper": { backgroundColor: "#0A3B7A" },
}}
>
{navigation.map((item, index) => (
<MenuItem>
}}>
<Box sx={{ display: "flex", flexDirection: "column" }}>
{navigation.map((item, index) => (
<NavItem key={index} {...item} />
</MenuItem>
))}
))}
</Box>
<LanguageSelector isMenu={true} />
</Menu>
</Box>
Expand All @@ -128,8 +128,7 @@ function ResponsiveAppBar() {
display: { xs: "none", mdlg: "flex" },
ml: "auto",
gap: 13,
}}
>
}}>
{navigation.map((item, index) => (
<NavItem key={index} {...item} />
))}
Expand Down