@@ -39,7 +39,6 @@ interface BaseChatInputProps {
3939 initialMode ?: ChatMode ;
4040 onSubmitMessage ?: ( ) => void ;
4141 onSubmit ?: ( e : FormEvent ) => Promise < void > ;
42- isInChatMode ?: boolean ;
4342 showReloadButton ?: boolean ;
4443 className ?: string ;
4544}
@@ -52,7 +51,6 @@ export default function BaseChatInput({
5251 initialMode = "morpheus" ,
5352 onSubmitMessage,
5453 onSubmit,
55- isInChatMode = false ,
5654 showReloadButton = false ,
5755 className = "" ,
5856} : BaseChatInputProps ) {
@@ -232,7 +230,7 @@ export default function BaseChatInput({
232230 variants = { containerVariants }
233231 initial = "hidden"
234232 animate = "visible"
235- className = { `relative ${ isInChatMode ? "mb-[1px]" : "" } ${ className } ` }
233+ className = { `relative ${ className } ` }
236234 >
237235 < div className = "max-w-3xl mx-auto relative" >
238236 { /* Action Buttons - Positioned inside the chat input */ }
@@ -376,20 +374,19 @@ export default function BaseChatInput({
376374 < div className = "flex flex-col" >
377375 { /* Input field with glow effect */ }
378376 < motion . div
379- className = { `w-full relative group transition-all duration-400 ease-in-out rounded-t- xl
377+ className = { `w-full relative group transition-all duration-400 ease-in-out rounded-xl
380378 ${
381- ! isInChatMode && ! isBusy
382- ? `rounded-lg shadow-lg backdrop-blur-md bg-white/15 dark:bg-black/15 hover:backdrop-blur-lg hover:bg-white/10 dark:hover:bg-black/10
383- ${
384- isMorpheusMode
385- ? "shadow-emerald-100/30 dark:shadow-emerald-900/10 border border-emerald-300/70 dark:border-emerald-500/20 hover:border-emerald-400/80 dark:hover:border-emerald-400/30"
386- : "shadow-indigo-100/30 dark:shadow-indigo-900/10 border border-indigo-300/70 dark:border-indigo-500/20 hover:border-indigo-400/80 dark:hover:border-indigo-400/30"
387- } `
388- : `${
379+ isBusy
380+ ? `${
389381 isMorpheusMode
390- ? "shadow-none border border-emerald-300/70 dark:border-emerald-800/30 rounded-b-none overflow-hidden bg-white/95 dark:bg-black/95 backdrop-blur-md"
391- : "shadow-none border border-indigo-300/70 dark:border-indigo-800/30 rounded-b-none overflow-hidden bg-white/95 dark:bg-black/95 backdrop-blur-md"
382+ ? "shadow-none border border-emerald-300/70 dark:border-emerald-800/30 overflow-hidden bg-white/95 dark:bg-neutral-800 backdrop-blur-md"
383+ : "shadow-none border border-indigo-300/70 dark:border-indigo-800/30 overflow-hidden bg-white/95 dark:bg-neutral-800 backdrop-blur-md"
392384 } `
385+ : `shadow-none border shadow-lg backdrop-blur-md bg-white/15 dark:bg-black/15 ${
386+ isMorpheusMode
387+ ? "border-emerald-300/70 dark:border-emerald-800/30 dark:border-emerald-500/20 hover:border-emerald-400/80 dark:hover:border-emerald-400/30"
388+ : "border-indigo-300/70 dark:border-indigo-800/30 dark:border-indigo-500/20 hover:border-indigo-400/80 dark:hover:border-indigo-400/30"
389+ } overflow-hidden bg-white/95 dark:bg-neutral-800 backdrop-blur-md`
393390 } `}
394391 variants = { inputVariants }
395392 initial = "hidden"
@@ -415,17 +412,14 @@ export default function BaseChatInput({
415412 text-sm sm:text-base
416413 min-h-[50px] sm:min-h-[56px]
417414 bg-transparent
418- ${
419- ! isInChatMode && ! isBusy
420- ? isMorpheusMode
421- ? "group-hover:bg-emerald-50/10 dark:group-hover:bg-emerald-950/10"
422- : "group-hover:bg-indigo-50/10 dark:group-hover:bg-indigo-950/10"
423- : ""
424- }
425415 border-none
426416 border-b-0
427417 text-gray-800 dark:text-gray-100
428- placeholder:text-gray-500 dark:placeholder:text-gray-500
418+ ${
419+ isMorpheusMode
420+ ? "placeholder:text-emerald-900/40 dark:placeholder:text-emerald-100/60"
421+ : "placeholder:text-indigo-900/40 dark:placeholder:text-indigo-100/60"
422+ }
429423 placeholder:text-sm
430424 focus:ring-0 focus:ring-offset-0
431425 focus:outline-none
@@ -444,33 +438,20 @@ export default function BaseChatInput({
444438 className = { `
445439 w-full h-[36px]
446440 flex items-center
447- ${
448- isInChatMode
449- ? showReloadButton
450- ? "rounded-b-none"
451- : "rounded-b-xl"
452- : "rounded-b-xl"
453- } rounded-t-xl
441+ rounded-b-xl
454442 border-none
455443 border-t-0
456444 shadow-none
457445 pt-0
458446 mt-0
459- bg-transparent
460- ${
461- ! isInChatMode && ! isBusy
462- ? isMorpheusMode
463- ? "group-hover:bg-emerald-50/10 dark:group-hover:bg-emerald-950/10"
464- : "group-hover:bg-indigo-50/10 dark:group-hover:bg-indigo-950/10"
465- : ""
466- } pb-1
447+ bg-transparent pb-1
467448 transition-all duration-200
468449 ` }
469450 >
470451 < div className = "ml-2 flex items-center gap-1" >
471452 { /* Mode Toggle Buttons - Bottom left */ }
472453 < motion . div
473- className = { `inline-flex rounded-lg p-0.5 bg-gray-100/70 dark:bg-gray -900/70 backdrop-blur-sm border border-gray-200 dark:border-gray-800
454+ className = { `inline-flex rounded-lg p-0.5 bg-gray-100/70 dark:bg-neutral -900/70 backdrop-blur-sm border border-gray-200 dark:border-gray-800
474455 ${ isBusy ? "relative opacity-90" : "" } ` }
475456 variants = { toggleVariants }
476457 initial = "hidden"
0 commit comments