Skip to content

Commit

Permalink
vinvoor: mobile improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Oct 27, 2024
1 parent 5e4b388 commit fdfebb6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
4 changes: 3 additions & 1 deletion vinvoor/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export const App = () => {
)}
</LoadingSkeleton>
</Container>
<Footer />
<Container sx={{ my: "2%" }}>
<Footer />
</Container>
</Box>
);
};
6 changes: 2 additions & 4 deletions vinvoor/src/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ export const Footer = () => {
alignItems: "center",
}}
>
<TypographyG width="33%">{version?.version ?? ""}</TypographyG>
<TypographyG>v {version?.version ?? ""}</TypographyG>
<TypographyG
sx={{
height: "100%",
display: "flex",
alignItems: "center",
width: "33%",
justifyContent: "center",
}}
>
Expand All @@ -46,10 +45,9 @@ export const Footer = () => {
</TypographyG>
<Link
href="https://github.com/ZeusWPI/ZeSS"
width="33%"
textAlign="end"
>
Github © 2024
© 2024
</Link>
</Box>
</Container>
Expand Down
9 changes: 6 additions & 3 deletions vinvoor/src/navbar/NavBarUserMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ import {
import { useTheme } from "@mui/material/styles";
import { Cow, ExitRun, ShieldAccountOutline } from "mdi-material-ui";
import { FC, MouseEvent, useState } from "react";
import { UnstyledLink } from "../components/UnstyledLink";
import { Login } from "../auth/Login";
import { Logout } from "../auth/Logout";
import { PageIcon } from "./NavBar";
import { BrowserView } from "../components/BrowserView";
import { UnstyledLink } from "../components/UnstyledLink";
import { useUser } from "../hooks/useUser";
import { PageIcon } from "./NavBar";

interface NavBarUserMenuProps {
pageIcons: readonly PageIcon[];
Expand Down Expand Up @@ -59,7 +60,9 @@ export const NavBarUserMenu: FC<NavBarUserMenuProps> = ({
}}
>
<ShieldAccountOutline sx={{ mr: "3px" }} />
<Typography variant="h6">{user.name}</Typography>
<BrowserView>
<Typography variant="h6">{user.name}</Typography>
</BrowserView>
</Button>
<Menu
sx={{ mt: "45px" }}
Expand Down

0 comments on commit fdfebb6

Please sign in to comment.