style : fix nav bar resize on mobile
This commit is contained in:
@@ -36,7 +36,7 @@ export default function NavBar({ darkMode, switchDarkMode }: Props) {
|
|||||||
edge="start"
|
edge="start"
|
||||||
color="inherit"
|
color="inherit"
|
||||||
aria-label="menu"
|
aria-label="menu"
|
||||||
sx={{ mr: 2 }}
|
sx={{ mr: "min(0.5vw, 0.6rem)" }}
|
||||||
onClick={() => setDrawerOpen((val) => !val)}
|
onClick={() => setDrawerOpen((val) => !val)}
|
||||||
>
|
>
|
||||||
<Icon icon="mdi:menu" />
|
<Icon icon="mdi:menu" />
|
||||||
@@ -51,7 +51,11 @@ export default function NavBar({ darkMode, switchDarkMode }: Props) {
|
|||||||
<Typography
|
<Typography
|
||||||
variant="h6"
|
variant="h6"
|
||||||
component="div"
|
component="div"
|
||||||
sx={{ flexGrow: 1, ml: 1 }}
|
sx={{
|
||||||
|
flexGrow: 1,
|
||||||
|
ml: 1,
|
||||||
|
fontSize: { xs: "1rem", sm: "1.25rem" },
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
Free Chess
|
Free Chess
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -64,14 +68,19 @@ export default function NavBar({ darkMode, switchDarkMode }: Props) {
|
|||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton
|
<IconButton
|
||||||
color="inherit"
|
color="inherit"
|
||||||
sx={{ ml: 1 }}
|
sx={{ ml: "min(0.6rem, 0.8vw)" }}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
window.open("https://github.com/GuillaumeSD/freechess")
|
window.open("https://github.com/GuillaumeSD/freechess")
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Icon icon="mdi:github" />
|
<Icon icon="mdi:github" />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton sx={{ ml: 1 }} onClick={switchDarkMode} color="inherit">
|
<IconButton
|
||||||
|
sx={{ ml: "min(0.6rem, 0.8vw)" }}
|
||||||
|
onClick={switchDarkMode}
|
||||||
|
color="inherit"
|
||||||
|
edge="end"
|
||||||
|
>
|
||||||
{darkMode ? (
|
{darkMode ? (
|
||||||
<Icon icon="mdi:brightness-7" />
|
<Icon icon="mdi:brightness-7" />
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Reference in New Issue
Block a user