From 3c30e1c6e75fce4d2b6a978a80f11105b3382747 Mon Sep 17 00:00:00 2001 From: AWorldOfMysteries Date: Mon, 22 Jan 2024 22:03:12 +0530 Subject: [PATCH] Updated UI for dropdowns and button positioning in the course resources section --- .../CourseResourceContainer.jsx | 74 ++++++++++++++----- 1 file changed, 54 insertions(+), 20 deletions(-) diff --git a/src/components/CourseResource/CourseResourceContainer.jsx b/src/components/CourseResource/CourseResourceContainer.jsx index e2ca154..6aa451e 100644 --- a/src/components/CourseResource/CourseResourceContainer.jsx +++ b/src/components/CourseResource/CourseResourceContainer.jsx @@ -260,7 +260,7 @@ const CourseResourceContainer = () => { const renderModuleDropdown = (modulesList) => { if(modulesList.length !== 0){ return( - + ) } return( @@ -284,11 +284,12 @@ const CourseResourceContainer = () => { const renderProfDropDown = () => { return( - + ) } const renderYearDropDown = (yearsList) => { if(yearsList.length !== 0){ return( - + ) } return null @@ -329,31 +332,37 @@ const CourseResourceContainer = () => { return ( <> -
+

Resources

+ } + > + Upload + + {isMobileS ? ( ) : ( )} - } - > - Upload -
theme.darksecondary}; + color: ${({ theme }) => theme.textColor}; + border-radius: 7px; + border: none; + align-items: center; + height: 35px; + } + .ant-select-arrow{ + color: ${({ theme }) => theme.textColor}; + } + + .custom-dropdown .ant-select-dropdown.ant-select-dropdown-placement-bottomLeft { + background-color: green !important; + padding: 0; + margin: 0; + border-radius: 30px; + } + + } +` \ No newline at end of file