From 1b07b98cc28367ff992ab528747593180d69e75d Mon Sep 17 00:00:00 2001 From: Kamil Marczak <79667721+qamarq@users.noreply.github.com> Date: Mon, 18 Nov 2024 12:18:08 +0100 Subject: [PATCH] fix: ui issue with scroll on a create plan page (#81) * fix: ui fix patch * fix: lint fix --- .../[id]/_components/CreateNewPlanPage.tsx | 48 +++++++++---------- frontend/src/app/plans/layout.tsx | 4 +- 2 files changed, 25 insertions(+), 27 deletions(-) diff --git a/frontend/src/app/plans/create/[id]/_components/CreateNewPlanPage.tsx b/frontend/src/app/plans/create/[id]/_components/CreateNewPlanPage.tsx index f0427e8..35e3d7f 100644 --- a/frontend/src/app/plans/create/[id]/_components/CreateNewPlanPage.tsx +++ b/frontend/src/app/plans/create/[id]/_components/CreateNewPlanPage.tsx @@ -102,8 +102,8 @@ export function CreateNewPlanPage({ planId }: { planId: string }) { }) ?? []; return ( -
-
+
+
@@ -206,29 +206,27 @@ export function CreateNewPlanPage({ planId }: { planId: string }) {
) : null} -
-
- - {plan.registrations.map((registration) => ( - { - plan.selectCourse(courseId); - }} - onDelete={() => { - plan.removeRegistration(registration.id); - }} - onCheckAll={(isChecked) => { - plan.checkAllCourses(registration.id, isChecked); - }} - courses={plan.courses.filter( - (c) => c.registrationId === registration.id, - )} - /> - ))} - -
+
+ + {plan.registrations.map((registration) => ( + { + plan.selectCourse(courseId); + }} + onDelete={() => { + plan.removeRegistration(registration.id); + }} + onCheckAll={(isChecked) => { + plan.checkAllCourses(registration.id, isChecked); + }} + courses={plan.courses.filter( + (c) => c.registrationId === registration.id, + )} + /> + ))} +

diff --git a/frontend/src/app/plans/layout.tsx b/frontend/src/app/plans/layout.tsx index 7b025ef..cab6e3d 100644 --- a/frontend/src/app/plans/layout.tsx +++ b/frontend/src/app/plans/layout.tsx @@ -12,13 +12,13 @@ export default function PlansLayout({ }) { return (
-
+
Kreator
-
+
Kreator