From f3e36f0bef872e7467c91d0b1936fd48bb56bdf2 Mon Sep 17 00:00:00 2001 From: Leonardo Negreiros de Oliveira Date: Mon, 13 Nov 2023 15:16:04 -0300 Subject: [PATCH] Add responsiviness to TaskList --- frontend/src/app/tasks/TaskForm.tsx | 3 +-- frontend/src/app/tasks/TaskList.tsx | 9 +++++++-- frontend/src/app/tasks/page.tsx | 5 +++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/frontend/src/app/tasks/TaskForm.tsx b/frontend/src/app/tasks/TaskForm.tsx index e6d63928a..c10b2e0fc 100644 --- a/frontend/src/app/tasks/TaskForm.tsx +++ b/frontend/src/app/tasks/TaskForm.tsx @@ -41,8 +41,7 @@ export const TaskForm = ({ projects, taskTypes, userId }: TaskFormProps) => { handleSubmit() }} component="form" - maxWidth="558px" - margin="0 auto" + sx={{ maxWidth: { xs: '100%', sm: '558px' } }} gap="16px" ref={formRef} > diff --git a/frontend/src/app/tasks/TaskList.tsx b/frontend/src/app/tasks/TaskList.tsx index 48c70d9d4..dce005915 100644 --- a/frontend/src/app/tasks/TaskList.tsx +++ b/frontend/src/app/tasks/TaskList.tsx @@ -30,14 +30,19 @@ export const TaskList = ({ userId }: TaskListProps) => { return ( {tasks.map((task) => (