feat(lms-web): improve AI guide workspace
This commit is contained in:
@@ -2671,7 +2671,7 @@ function LocalPcWorkspaceMockup({
|
||||
if (mode === 'teacher') setTeacherChatFlash(false)
|
||||
}}
|
||||
onStop={stopAiResponse}
|
||||
onSubmit={(content) => void sendQaMessage(content)}
|
||||
onSubmit={(content) => void sendQaMessage(content, { contextWeek: selectedWeekState?.week })}
|
||||
onClearConversation={() => {
|
||||
void clearQaConversation().catch((error) => console.error('[chat] clear failed', error))
|
||||
}}
|
||||
|
||||
@@ -55,7 +55,7 @@ export default function Sidebar({
|
||||
return (
|
||||
<aside
|
||||
className={[
|
||||
'flex shrink-0 flex-col rounded-bl-[18px] bg-[#181b20] px-2.5 pb-3.5 pt-[18px] transition-[width] duration-200 ease-out',
|
||||
'flex shrink-0 flex-col rounded-bl-[18px] bg-[#111520] px-2.5 pb-3.5 pt-[18px] transition-[width] duration-200 ease-out',
|
||||
collapsed ? 'w-[68px]' : 'w-[240px]'
|
||||
].join(' ')}
|
||||
>
|
||||
@@ -177,11 +177,11 @@ export default function Sidebar({
|
||||
className="relative grid h-[34px] w-full cursor-pointer place-items-center rounded bg-transparent text-white/75 transition hover:bg-white/[0.06]"
|
||||
>
|
||||
<Activity size={17} />
|
||||
<span className={['absolute right-2 top-1 h-2.5 w-2.5 rounded-full ring-2 ring-[#181b20]', visibleRunningSessions[0]?.dotClassName ?? 'bg-[#14b8a6]'].join(' ')} />
|
||||
<span className={['absolute right-2 top-1 h-2.5 w-2.5 rounded-full ring-2 ring-[#111520]', visibleRunningSessions[0]?.dotClassName ?? 'bg-[#14b8a6]'].join(' ')} />
|
||||
</button>
|
||||
)}
|
||||
{collapsed && sessionPopoverOpen && (
|
||||
<div className="absolute bottom-0 left-[62px] z-20 w-[240px] rounded-md border border-white/10 bg-[#181b20] py-1.5 shadow-[18px_0_42px_rgba(0,0,0,0.22)]">
|
||||
<div className="absolute bottom-0 left-[62px] z-20 w-[240px] rounded-md border border-white/10 bg-[#111520] py-1.5 shadow-[18px_0_42px_rgba(0,0,0,0.22)]">
|
||||
<div className="session-scrollbar max-h-[286px] overflow-y-auto pr-1">
|
||||
{visibleRunningSessions.map((session, index) => (
|
||||
<div key={session.id} className="relative border-b border-white/10 last:border-b-0">
|
||||
|
||||
Reference in New Issue
Block a user