Improve course UI

feat/ai-courses
Kamran Ahmed 2 months ago
parent 0ab26942fa
commit addbc1ea9b
  1. 6
      src/components/GenerateCourse/AICourseModuleList.tsx

@ -160,7 +160,7 @@ export function AICourseModuleList(props: AICourseModuleListProps) {
setViewMode('module'); setViewMode('module');
}} }}
className={cn( className={cn(
'flex w-full cursor-pointer items-center py-3 pl-3.5 pr-2 text-left text-sm leading-relaxed', 'flex gap-2.5 w-full cursor-pointer items-center py-3 pl-3.5 pr-2 text-left text-sm leading-normal',
activeModuleIndex === moduleIdx && activeModuleIndex === moduleIdx &&
activeLessonIndex === lessonIdx activeLessonIndex === lessonIdx
? 'bg-gray-200 text-black' ? 'bg-gray-200 text-black'
@ -170,7 +170,7 @@ export function AICourseModuleList(props: AICourseModuleListProps) {
{isCompleted ? ( {isCompleted ? (
<CheckIcon <CheckIcon
additionalClasses={cn( additionalClasses={cn(
'size-[18px] relative bg-white rounded-full top-[2px] mr-2.5 flex-shrink-0 text-green-600', 'size-[18px] relative bg-white rounded-full top-[2px] flex-shrink-0 text-green-600',
{ {
'text-black': 'text-black':
activeModuleIndex === moduleIdx && activeModuleIndex === moduleIdx &&
@ -181,7 +181,7 @@ export function AICourseModuleList(props: AICourseModuleListProps) {
) : ( ) : (
<span <span
className={cn( className={cn(
'mr-2 flex size-[18px] flex-shrink-0 items-center justify-center rounded-full bg-gray-400/70 text-xs font-semibold text-white', 'flex size-[18px] flex-shrink-0 items-center justify-center rounded-full bg-gray-400/70 text-xs font-semibold text-white',
{ {
'bg-black': 'bg-black':
activeModuleIndex === moduleIdx && activeModuleIndex === moduleIdx &&

Loading…
Cancel
Save