From a19a84f67a60874eb0d964a98928c6f65bf78186 Mon Sep 17 00:00:00 2001 From: cedric karungu Date: Fri, 15 Dec 2023 20:51:38 +0200 Subject: [PATCH 1/3] fix: tables responsive on team settings page --- apps/web/lib/settings/invitation-table.tsx | 34 +++++++++++++++++----- apps/web/lib/settings/member-table.tsx | 12 ++++---- apps/web/pages/settings/personal.tsx | 5 ++++ apps/web/pages/settings/team.tsx | 5 ++++ 4 files changed, 42 insertions(+), 14 deletions(-) diff --git a/apps/web/lib/settings/invitation-table.tsx b/apps/web/lib/settings/invitation-table.tsx index 9d0475fe1..0d357650d 100644 --- a/apps/web/lib/settings/invitation-table.tsx +++ b/apps/web/lib/settings/invitation-table.tsx @@ -23,25 +23,43 @@ export const InvitationTable = ({ invitations }: { invitations: (IInvitation | I - - - - - - - + @@ -49,7 +67,7 @@ export const InvitationTable = ({ invitations }: { invitations: (IInvitation | I diff --git a/apps/web/pages/settings/personal.tsx b/apps/web/pages/settings/personal.tsx index 12128bd55..668406a2a 100644 --- a/apps/web/pages/settings/personal.tsx +++ b/apps/web/pages/settings/personal.tsx @@ -43,6 +43,11 @@ const Personal = () => {
+ + + { {isTeamMember ? (
+ + + {/* General Settings */} Date: Fri, 15 Dec 2023 21:59:39 +0200 Subject: [PATCH 2/3] style: assign task form responsive --- apps/web/lib/features/task/task-item.tsx | 6 +++--- apps/web/pages/index.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web/lib/features/task/task-item.tsx b/apps/web/lib/features/task/task-item.tsx index bbfb2b819..5b195cf7a 100644 --- a/apps/web/lib/features/task/task-item.tsx +++ b/apps/web/lib/features/task/task-item.tsx @@ -32,17 +32,17 @@ export function TaskItem({ task, selected, onClick, className }: Props) { return (
onClick && task && task.status !== 'closed' && onClick(task)} >
-
+
{/* )} */} From 314ca9c52d89ccd2354ff6ad6a75127e1f4828b1 Mon Sep 17 00:00:00 2001 From: cedric karungu Date: Sat, 16 Dec 2023 13:46:55 +0200 Subject: [PATCH 3/3] feat:make table view responsive on tablets devices --- apps/web/lib/features/team-member-cell.tsx | 6 +++--- apps/web/lib/features/team/user-team-card/index.tsx | 2 +- .../team/user-team-table/user-team-table-header.tsx | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/web/lib/features/team-member-cell.tsx b/apps/web/lib/features/team-member-cell.tsx index c9bb7b50d..17c152c42 100644 --- a/apps/web/lib/features/team-member-cell.tsx +++ b/apps/web/lib/features/team-member-cell.tsx @@ -20,7 +20,7 @@ export function TaskCell({ row }: { row: any }) { ); @@ -45,7 +45,7 @@ export function WorkedOnTaskCell({ row }: { row: any }) { memberInfo={memberInfo} task={memberInfo?.memberTask} isAuthUser={memberInfo?.isAuthUser} - className="2xl:w-32 3xl:w-[8rem] w-52 lg:w-1/5 flex flex-col gap-y-[1.125rem] justify-center" + className="2xl:w-32 3xl:w-[8rem] min-w-[15rem] w-52 lg:w-1/5 flex flex-col gap-y-[1.125rem] justify-center" /> ); } @@ -60,7 +60,7 @@ export function TaskEstimateInfoCell({ row }: { row: any }) { memberInfo={memberInfo} edition={taskEdition} activeAuthTask={true} - className="lg:px-3 2xl:w-52 3xl:w-64 w-52 lg:w-1/5" + className="lg:px-3 2xl:w-52 3xl:w-64 min-w-[15rem] w-52 lg:w-1/5" /> ); } diff --git a/apps/web/lib/features/team/user-team-card/index.tsx b/apps/web/lib/features/team/user-team-card/index.tsx index 5e66c687f..e0c78eccb 100644 --- a/apps/web/lib/features/team/user-team-card/index.tsx +++ b/apps/web/lib/features/team/user-team-card/index.tsx @@ -123,7 +123,7 @@ export function UserTeamCard({ className, active, member, publicTeam = false }: diff --git a/apps/web/lib/features/team/user-team-table/user-team-table-header.tsx b/apps/web/lib/features/team/user-team-table/user-team-table-header.tsx index 53391fa77..68f815ae4 100644 --- a/apps/web/lib/features/team/user-team-table/user-team-table-header.tsx +++ b/apps/web/lib/features/team/user-team-table/user-team-table-header.tsx @@ -2,12 +2,12 @@ import React from 'react'; function UserTeamTableHeader() { return ( -
-

Name

-

Task

-

Worked on Task

-

Estimate

-

Action

+
+

Name

+

Task

+

Worked on Task

+

Estimate

+

Action

); }
+ {t('pages.invite.invitationTable.NAME_AND_EMAIL')} + {t('pages.invite.invitationTable.POSITION')} + {t('pages.invite.invitationTable.DATE_AND_TIME_REQUEST')} + {t('pages.invite.invitationTable.CV_OR_ATTACHMENT')} + {t('common.LINK')} + {t('common.STATUS')}
{
{t('common.NAME')} {t('common.POSITION')} {t('common.ROLES')} {t('common.JOIN_OR_LEFT')} {t('common.STATUS')}