diff --git a/CHANGELOG.md b/CHANGELOG.md index cc19681be..ac3c9b70d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ You can also check the - Fixed preview via API (iframe) - Fixed cut table scroll-bars and unnecessary scroll of bar charts when switching between chart types + - Added Footer to the Profile Page # [5.0.2] - 2024-11-28 diff --git a/app/login/components/profile-content-tabs.tsx b/app/login/components/profile-content-tabs.tsx index b8f80e37f..2073408f8 100644 --- a/app/login/components/profile-content-tabs.tsx +++ b/app/login/components/profile-content-tabs.tsx @@ -13,6 +13,8 @@ import useEvent from "@/utils/use-event"; const useStyles = makeStyles((theme) => ({ section: { + borderBottom: 1, + borderColor: "divider", marginTop: theme.spacing(6), }, tabList: { @@ -49,6 +51,7 @@ export const ProfileContentTabs = (props: ProfileContentTabsProps) => { const handleChange = useEvent((_: React.SyntheticEvent, v: string) => { setValue(v); }); + const rootClasses = useRootStyles(); const classes = useStyles(); @@ -66,9 +69,9 @@ export const ProfileContentTabs = (props: ProfileContentTabsProps) => { return ( - + - + ((theme) => ({ root: { marginTop: `${HEADER_HEIGHT}px`, - backgroundColor: theme.palette.muted.main, + minHeight: `calc(100vh - ${HEADER_HEIGHT}px)`, + display: "flex", + flexDirection: "column", + }, + content: { + flexGrow: 1, + display: "flex", + flexDirection: "column", }, section: { display: "flex", flexDirection: "column", padding: `0 ${theme.spacing(6)}`, + backgroundColor: theme.palette.muted.main, }, sectionContent: { width: "100%", diff --git a/app/pages/profile.tsx b/app/pages/profile.tsx index 96f02658c..2161b2a7f 100644 --- a/app/pages/profile.tsx +++ b/app/pages/profile.tsx @@ -3,6 +3,7 @@ import { User } from "@prisma/client"; import { GetServerSideProps } from "next"; import { getServerSession } from "next-auth"; +import { Footer } from "@/components/footer"; import { AppLayout } from "@/components/layout"; import { getUserConfigs, ParsedConfig } from "@/db/config"; import { deserializeProps, Serialized, serializeProps } from "@/db/serialize"; @@ -57,7 +58,10 @@ const ProfilePage = (props: Serialized) => { - + + + +