From 75ed37151802b0b6a5eea89b4ea49d5c58a4b08d Mon Sep 17 00:00:00 2001 From: itsvick Date: Mon, 2 Dec 2024 19:32:28 +0530 Subject: [PATCH] Issue #PS-0000 fix: Fixed layout --- src/pages/subjectDetails.tsx | 57 +++++++++++++----------------------- 1 file changed, 20 insertions(+), 37 deletions(-) diff --git a/src/pages/subjectDetails.tsx b/src/pages/subjectDetails.tsx index 8b181fa7..2024e112 100644 --- a/src/pages/subjectDetails.tsx +++ b/src/pages/subjectDetails.tsx @@ -839,42 +839,27 @@ const SubjectDetails = () => { - - {subject && subject.length > 1 ? ( - subject.map((subj: any, index: number) => ( - - handleCardClick(subj)} - sx={{ - padding: "14px", - cursor: "pointer", - border: "1px solid rgba(0, 0, 0, 0.1)", - boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.05)", - borderRadius: "8px", - transition: "all 0.3s ease", - "&:hover": { - backgroundColor: "#EAF2FF", - transform: "scale(1.02)", - }, - marginTop: "12px", - }} - > - - - - {subj?.name || "Untitled Subject"} - - - - - )) - ) : ( - 1 ? ( + subject?.map((subj: string, index: number) => ( + handleCardClick(subj)} > - {/* Left Section: Folder Icon and Subject Name */} { Select Medium, Grade, and Type )} - - );