Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion frontend/src/app/ui/homePage/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ import { H2, H3, P } from "app/ui/ux/text";
import { IconInfo, IconCheck } from "app/ui/ux/icons";
import { Stack, HR } from "app/ui/ux/containers";
import { WorkmodeButtons } from "app/ui/homePage/WorkmodeButtons";
import { Card } from "app/ui/ux/Card"
import { Card } from "app/ui/ux/Card";
import { NAVIGATION_BAR_HEIGHT_PX } from "app/ui/siteLayout/NavigationBar";


const InlineIconButton = styled(IconButton)({
Expand Down Expand Up @@ -102,6 +103,7 @@ export const HomePage: React.FC = () => {
mx="auto"
p={["0.5rem", "1rem", "2.5rem"]}
spacing={["0.5rem", "1rem", "2.5rem"]}
marginTop={`${NAVIGATION_BAR_HEIGHT_PX}px`}
>
<RenderQuery
query={combineQueries({
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/ui/planningPage/PlanningPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const PlanningPage: React.FC = () => {
const [month, setMonth] = useState<string>(dayjs().format("MMMM YYYY"));

return (
<Page className="PlanningPage">
<Page className="PlanningPage" marginTop={`${NAVIGATION_BAR_HEIGHT_PX}px`}>
{/* Heading element */}
<HeaderWrapper>
<Header>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/ui/siteLayout/NavigationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const AvatarContainer = styled("div")({
});

export const NavigationBar: React.FC<INavigationBar> = ({ user }) => (
<StyledAppBar position="static" className="NavigationBar">
<StyledAppBar position="fixed" className="NavigationBar">
<StyledToolbar>
<AppTitleLink to={RoutePaths.Home} aria-label="Home">
<IconLogoLight height="32" width="28" /> <AppTitle>futuLog</AppTitle>
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/app/ui/userPage/UserPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { userQueryKey, setDefaultOfficeQueryKey } from "app/utils/reactQueryUtil
import { useMutation } from "react-query";
import { SiteSelector } from "../siteSelector/SiteSector";
import { Button } from "../ux/buttons";
import { NAVIGATION_BAR_HEIGHT_PX } from "app/ui/siteLayout/NavigationBar";

export const UserPage: React.FC = () => {
const { apiClient, queryCache } = useServices();
Expand All @@ -34,7 +35,7 @@ export const UserPage: React.FC = () => {
};

return (
<PageMargins className="UserPage">
<PageMargins className="UserPage" marginTop={`${NAVIGATION_BAR_HEIGHT_PX}px`}>
<Stack spacing="2.5rem" maxWidth="25rem" mx="auto" textAlign="center">
<H2>Personal page</H2>
<Flex justifyContent="center">
Expand Down