From afb696780dd31689bd4ded128335362ae5bbe520 Mon Sep 17 00:00:00 2001 From: Innocent-akim Date: Fri, 10 Jan 2025 13:29:17 +0200 Subject: [PATCH] [Bugfix] Adjusted Team Member Card layout to use available space effectively (#3467) --- apps/web/app/[locale]/all-teams/component.tsx | 22 ++++++++++--------- .../features/all-teams-members-block-view.tsx | 2 +- apps/web/lib/settings/working-hours.tsx | 6 ++--- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/apps/web/app/[locale]/all-teams/component.tsx b/apps/web/app/[locale]/all-teams/component.tsx index a62530752..4e0d8a149 100644 --- a/apps/web/app/[locale]/all-teams/component.tsx +++ b/apps/web/app/[locale]/all-teams/component.tsx @@ -39,19 +39,21 @@ function AllTeamsPage() { showTimer={isTrackingEnabled} className="items-start" mainHeaderSlot={ -
-
- -
-
- + +
+
+ +
+
+ +
+
-
-
- {view == IssuesView.CARDS && } -
+ {view == IssuesView.CARDS && } +
+ } > diff --git a/apps/web/lib/features/all-teams-members-block-view.tsx b/apps/web/lib/features/all-teams-members-block-view.tsx index 5cf5a63f1..10ee6b91b 100644 --- a/apps/web/lib/features/all-teams-members-block-view.tsx +++ b/apps/web/lib/features/all-teams-members-block-view.tsx @@ -29,7 +29,7 @@ export default function AllTeamsMembersBlockView({ teams }: { teams: IOrganizati return ( <> {employeesArray.length > 0 ? ( -
{ +
{ employeesArray.map((employee) =>
diff --git a/apps/web/lib/settings/working-hours.tsx b/apps/web/lib/settings/working-hours.tsx index 9574ac264..44cf20703 100644 --- a/apps/web/lib/settings/working-hours.tsx +++ b/apps/web/lib/settings/working-hours.tsx @@ -59,7 +59,7 @@ export const WorkingHours: React.FC = ({ initialSchedule }) = if (!user?.timeZone) { handleChangeTimezone(undefined); } - }, [currentTimezone, setValue, handleChangeTimezone]); + }, [currentTimezone, setValue, handleChangeTimezone, user?.timeZone]); React.useEffect(() => { setValue( @@ -99,7 +99,7 @@ export const WorkingHours: React.FC = ({ initialSchedule }) = />
{schedule.map((workDay, index) => ( -
+