From 33759073cea287a0aaa30343dccfa02f3ecaf159 Mon Sep 17 00:00:00 2001 From: Daniel Vianna da SIlva Date: Thu, 19 Oct 2023 16:22:18 -0300 Subject: [PATCH] style: fixed profile position --- src/components/Cover/CoverHomeTasks.tsx | 3 +-- src/components/Cover/CoverUserProfile.tsx | 4 ++-- src/content/applications/Users/profile/UserProfile.tsx | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/Cover/CoverHomeTasks.tsx b/src/components/Cover/CoverHomeTasks.tsx index 0198e16..5e1d632 100644 --- a/src/components/Cover/CoverHomeTasks.tsx +++ b/src/components/Cover/CoverHomeTasks.tsx @@ -7,7 +7,6 @@ import { const CoverHomeTasks = () => { const theme = useTheme(); const mdDown = useMediaQuery(theme.breakpoints.down('md')); - const xsDown = useMediaQuery(theme.breakpoints.down('xs')); const smDown = useMediaQuery(theme.breakpoints.down('sm')); return ( @@ -23,7 +22,7 @@ const CoverHomeTasks = () => { - + WEB3TASK diff --git a/src/components/Cover/CoverUserProfile.tsx b/src/components/Cover/CoverUserProfile.tsx index 307c7a4..42d697f 100644 --- a/src/components/Cover/CoverUserProfile.tsx +++ b/src/components/Cover/CoverUserProfile.tsx @@ -6,13 +6,13 @@ import { const CoverCreateTask = () => { const theme = useTheme(); const mdDown = useMediaQuery(theme.breakpoints.down('md')); - const xsDown = useMediaQuery(theme.breakpoints.down('xs')); + const smDown = useMediaQuery(theme.breakpoints.down('xs')); return ( - + PERSONAL PROFILE diff --git a/src/content/applications/Users/profile/UserProfile.tsx b/src/content/applications/Users/profile/UserProfile.tsx index a300e16..fc6bb7f 100644 --- a/src/content/applications/Users/profile/UserProfile.tsx +++ b/src/content/applications/Users/profile/UserProfile.tsx @@ -108,7 +108,7 @@ const UserProfile = () => { style={{ position: 'absolute', top: 'calc(50% + 180px)', - left: smDown ? 'calc(50% + 165px)' : mdDown ? 'calc(50% + 210px)' : 'calc(50% - 250px)', + left: smDown ? 'calc(50% + 200px)' : mdDown ? 'calc(50% + 210px)' : 'calc(50% - 250px)', transform: 'translate(-50%, -50%)', zIndex: 2, pointerEvents: 'none'