From f5e45af0266faa93506fee34de4e974dcfe35659 Mon Sep 17 00:00:00 2001 From: "Thierry CH." Date: Fri, 19 Jul 2024 10:14:40 +0200 Subject: [PATCH] fix: remove unecessary paddings / margings on home and team page (#2759) * fix: remove unecessary paddings / margings on home and team page * fix: fix broken views --- apps/web/app/[locale]/page-component.tsx | 109 ++++++++---------- .../app/[locale]/profile/[memberId]/page.tsx | 13 +-- apps/web/lib/layout/main-layout.tsx | 4 +- 3 files changed, 55 insertions(+), 71 deletions(-) diff --git a/apps/web/app/[locale]/page-component.tsx b/apps/web/app/[locale]/page-component.tsx index e1b331bf5..dc4e771ad 100644 --- a/apps/web/app/[locale]/page-component.tsx +++ b/apps/web/app/[locale]/page-component.tsx @@ -7,9 +7,9 @@ import { useOrganizationTeams } from '@app/hooks'; import { clsxm } from '@app/utils'; import NoTeam from '@components/pages/main/no-team'; import { withAuthentication } from 'lib/app/authenticator'; -import { Breadcrumb, Card, Divider } from 'lib/components'; +import { Breadcrumb, Card } from 'lib/components'; import { AuthUserTaskInput, TeamInvitations, TeamMembers, Timer, UnverifiedEmail } from 'lib/features'; -import { Footer, MainLayout } from 'lib/layout'; +import { MainLayout } from 'lib/layout'; import { IssuesView } from '@app/constants'; import { useNetworkState } from '@uidotdev/usehooks'; import Offline from '@components/pages/offline'; @@ -65,69 +65,56 @@ function MainPage() { return ( <>
-
- - -
- - {/* */} - setHeaderSize(size)} - > -
-
-
-
- - -
-
- -
+ {/*
*/} + + +
+ + {/* */} + setHeaderSize(size)} + > +
+
+
+
+ +
-
- - - - {isTeamMember ? ( - - ) : null} +
+
-
+
+ + + + {isTeamMember ? ( + + ) : null} +
+
- - - - {/* */} - -
{isTeamMember ? : }
-
- -
- -
-
- -
-
+
+ + + {/* */} + +
{isTeamMember ? : }
+
+ +
+
diff --git a/apps/web/app/[locale]/profile/[memberId]/page.tsx b/apps/web/app/[locale]/profile/[memberId]/page.tsx index c44a3d619..e0afccf3c 100644 --- a/apps/web/app/[locale]/profile/[memberId]/page.tsx +++ b/apps/web/app/[locale]/profile/[memberId]/page.tsx @@ -13,7 +13,7 @@ import { TaskFilter, Timer, TimerStatus, UserProfileTask, getTimerStatusValue, u import { MainHeader, MainLayout } from 'lib/layout'; import Link from 'next/link'; import React, { useCallback, useMemo, useState } from 'react'; -import { useTranslations } from 'next-intl' +import { useTranslations } from 'next-intl'; import stc from 'string-to-color'; import { useRecoilValue, useSetRecoilState } from 'recoil'; @@ -105,15 +105,12 @@ const Profile = React.memo(function ProfilePage({ params }: { params: { memberId setHeaderSize(size)} > - + {/* Breadcrumb */}
@@ -141,7 +138,7 @@ const Profile = React.memo(function ProfilePage({ params }: { params: { memberId - + {hook.tab == 'worked' && canSeeActivity && (
diff --git a/apps/web/lib/layout/main-layout.tsx b/apps/web/lib/layout/main-layout.tsx index 6f5ec8c2f..26aba60d5 100644 --- a/apps/web/lib/layout/main-layout.tsx +++ b/apps/web/lib/layout/main-layout.tsx @@ -30,7 +30,7 @@ export function MainLayout({ }: Props) { const fullWidth = useRecoilValue(fullWidthState); return ( -
+