From 0544c95363fa16ad055d8e09421da26864d83f6d Mon Sep 17 00:00:00 2001 From: Primakov Alexandr Alexandrovich Date: Tue, 4 Nov 2025 10:43:47 +0300 Subject: [PATCH] Refactor Layout and TaskFormPage components to use full width for improved layout consistency. This change enhances responsiveness and ensures better alignment of UI elements. --- src/components/Layout.tsx | 4 ++-- src/pages/tasks/TaskFormPage.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 2790daf..b93e297 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -122,9 +122,9 @@ export const Layout: React.FC = ({ children }) => { {/* Main Content */} - + {children} - + ) } diff --git a/src/pages/tasks/TaskFormPage.tsx b/src/pages/tasks/TaskFormPage.tsx index 6ac4cb4..9cbdd36 100644 --- a/src/pages/tasks/TaskFormPage.tsx +++ b/src/pages/tasks/TaskFormPage.tsx @@ -117,7 +117,7 @@ export const TaskFormPage: React.FC = () => { const isLoading = isCreating || isUpdating return ( - + {isEdit ? t('challenge.admin.tasks.edit.title') : t('challenge.admin.tasks.create.title')} { boxShadow="sm" borderWidth="1px" borderColor="gray.200" + w="100%" > {/* Title */}