From 6ad7dfe5b7beb6dfc88592ce1799642acbb1ef28 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 28 Mar 2025 20:18:01 +0000 Subject: [PATCH] Improve questions UI --- .../GenerateCourse/AICourseContent.tsx | 6 ++---- .../GenerateCourse/AICourseLesson.tsx | 2 +- .../GenerateCourse/AICourseLessonChat.tsx | 17 ++--------------- 3 files changed, 5 insertions(+), 20 deletions(-) diff --git a/src/components/GenerateCourse/AICourseContent.tsx b/src/components/GenerateCourse/AICourseContent.tsx index 6b014eb56..8912f6242 100644 --- a/src/components/GenerateCourse/AICourseContent.tsx +++ b/src/components/GenerateCourse/AICourseContent.tsx @@ -5,10 +5,8 @@ import { CircleOff, Menu, X, - Map, - MessageCircle, - MessageCircleOffIcon, - MessageCircleIcon, + Map, MessageCircleOffIcon, + MessageCircleIcon } from 'lucide-react'; import { useEffect, useState } from 'react'; import { type AiCourse } from '../../lib/ai'; diff --git a/src/components/GenerateCourse/AICourseLesson.tsx b/src/components/GenerateCourse/AICourseLesson.tsx index 68b194b7f..7be7aa76d 100644 --- a/src/components/GenerateCourse/AICourseLesson.tsx +++ b/src/components/GenerateCourse/AICourseLesson.tsx @@ -271,7 +271,7 @@ export function AICourseLesson(props: AICourseLessonProps) { defaultSize={isAIChatsOpen ? 60 : 100} minSize={40} id="course-text-content" - className="h-full overflow-y-scroll bg-white" + className="h-full !overflow-y-scroll bg-white" order={1} >
diff --git a/src/components/GenerateCourse/AICourseLessonChat.tsx b/src/components/GenerateCourse/AICourseLessonChat.tsx index 25717b259..6936105a3 100644 --- a/src/components/GenerateCourse/AICourseLessonChat.tsx +++ b/src/components/GenerateCourse/AICourseLessonChat.tsx @@ -249,26 +249,13 @@ export function AICourseLessonChat(props: AICourseLessonChatProps) { html={chat.html} /> - {chat.isDefault && !defaultQuestions?.length && ( -
-
- {capabilities.map((capability, index) => ( - - ))} -
-
- )} - {chat.isDefault && defaultQuestions?.length > 1 && (
-
+
{defaultQuestions.map((question, index) => (