From 2f8698751bc9530b41e75ec978725d931ed9c93f Mon Sep 17 00:00:00 2001 From: "luisa.bellitto" Date: Mon, 30 Jun 2025 13:41:01 +0200 Subject: [PATCH] fix routes and padding of profile --- code/frontend/src/components/profile/Bio.tsx | 1 - code/frontend/src/components/profile/QuiltedImageList.tsx | 4 ++-- code/frontend/src/components/profile/Username.tsx | 2 +- .../src/components/{ => profile}/changeAvatarDialog.css | 0 code/frontend/src/pages/Profile.tsx | 4 ---- code/frontend/src/pages/profile.css | 2 +- 6 files changed, 4 insertions(+), 9 deletions(-) rename code/frontend/src/components/{ => profile}/changeAvatarDialog.css (100%) diff --git a/code/frontend/src/components/profile/Bio.tsx b/code/frontend/src/components/profile/Bio.tsx index ba7a76e..6d4abdc 100644 --- a/code/frontend/src/components/profile/Bio.tsx +++ b/code/frontend/src/components/profile/Bio.tsx @@ -3,7 +3,6 @@ import TextField from "@mui/material/TextField"; import StyledEngineProvider from "@mui/styled-engine/StyledEngineProvider"; import { useState } from "react"; import "./bio.css"; -import "../styles/colors.css"; import IconButton from "@mui/material/IconButton"; import EditSquareIcon from "@mui/icons-material/EditSquare"; import ButtonPrimary from "../ButtonRotkehlchen"; diff --git a/code/frontend/src/components/profile/QuiltedImageList.tsx b/code/frontend/src/components/profile/QuiltedImageList.tsx index c12a00c..2dd5377 100644 --- a/code/frontend/src/components/profile/QuiltedImageList.tsx +++ b/code/frontend/src/components/profile/QuiltedImageList.tsx @@ -2,9 +2,9 @@ import ImageListItem from "@mui/material/ImageListItem"; import { StyledEngineProvider } from "@mui/material/styles"; import "./quiltedImageList.css"; import { Box, Grid, Skeleton } from "@mui/material"; -import api from "../api/axios"; +import api from "../../api/axios"; import { useEffect, useState } from "react"; -import { UserProfile } from "../types/UserProfile"; +import { UserProfile } from "../../types/UserProfile"; import { useNavigate } from "react-router-dom"; export default function StandardImageList({ user }: { user: UserProfile }) { diff --git a/code/frontend/src/components/profile/Username.tsx b/code/frontend/src/components/profile/Username.tsx index 5922711..f6bd1c5 100644 --- a/code/frontend/src/components/profile/Username.tsx +++ b/code/frontend/src/components/profile/Username.tsx @@ -1,5 +1,5 @@ import { Popover, Typography } from "@mui/material"; -import { useEffect, useState } from "react"; +import { useState } from "react"; import "./username.css"; export default function Username({ username }: { username: string }) { diff --git a/code/frontend/src/components/changeAvatarDialog.css b/code/frontend/src/components/profile/changeAvatarDialog.css similarity index 100% rename from code/frontend/src/components/changeAvatarDialog.css rename to code/frontend/src/components/profile/changeAvatarDialog.css diff --git a/code/frontend/src/pages/Profile.tsx b/code/frontend/src/pages/Profile.tsx index 77bd48c..588caba 100644 --- a/code/frontend/src/pages/Profile.tsx +++ b/code/frontend/src/pages/Profile.tsx @@ -1,8 +1,4 @@ import "./profile.css"; -import "../components/bio.css"; -import "./loginAndSignUpPage.css"; -import "../styles/sizes.css"; -import "../styles/fonts.css"; import QuiltedImageList from "../components/profile/QuiltedImageList"; import { StyledEngineProvider, Divider } from "@mui/material"; import ChangeAvatarDialog from "../components/profile/ChangeAvatarDialog"; diff --git a/code/frontend/src/pages/profile.css b/code/frontend/src/pages/profile.css index 8920eed..5d9385e 100644 --- a/code/frontend/src/pages/profile.css +++ b/code/frontend/src/pages/profile.css @@ -1,5 +1,5 @@ .profile-display { - padding-top: calc(var(--Header-height) + 1rem); + padding-top: 1rem; min-height: 100vh; }