@@ -499,7 +499,6 @@ export function ChatInterface({
499499 className = { cn (
500500 "flex flex-col w-full bg-fd-background/80 backdrop-blur-sm relative" ,
501501 fullHeight ? "h-full" : "h-[calc(100vh-12rem)]" ,
502- "md:mt-0 mt-12" ,
503502 "overflow-hidden" ,
504503 ) }
505504 >
@@ -572,7 +571,7 @@ export function ChatInterface({
572571 delay : index === messages . length - 1 ? 0.1 : 0 ,
573572 } }
574573 className = { cn (
575- "flex gap-3 " ,
574+ "flex gap-2 sm:gap-3 min-w-0 " ,
576575 message . role === "user" ? "flex-row-reverse" : "flex-row" ,
577576 ) }
578577 >
@@ -595,16 +594,16 @@ export function ChatInterface({
595594 { /* Message content */ }
596595 < div
597596 className = { cn (
598- "flex flex-col gap-1 max-w-[calc(100%-3rem)]" ,
597+ "flex flex-col gap-1 min-w-0 max-w-[85%] sm: max-w-[calc(100%-3rem)]" ,
599598 message . role === "user" ? "items-end" : "items-start" ,
600599 ) }
601600 >
602601 < div
603602 className = { cn (
604- "rounded-2xl px-4 py-3 break-words overflow-hidden " ,
603+ "rounded-2xl px-4 py-3 break-words min-w-0 w-full " ,
605604 message . role === "user"
606- ? "bg-[#5865F2] text-white rounded-tr-sm"
607- : "bg-fd-muted/50 border border-fd-border text-fd-foreground rounded-tl-sm" ,
605+ ? "bg-[#5865F2] text-white rounded-tr-sm overflow-hidden "
606+ : "bg-fd-muted/50 border border-fd-border text-fd-foreground rounded-tl-sm overflow-x-auto " ,
608607 ) }
609608 >
610609 { renderMessageContent ( message . content ) }
@@ -668,8 +667,8 @@ export function ChatInterface({
668667 autoResize ( ) ;
669668 } }
670669 onKeyDown = { handleKeyDown }
671- placeholder = "Ask about FiveM, RedM, or txAdmin... (Shift+Enter for newline) "
672- className = "w-full bg-fd-muted/30 border border-fd-border focus:border-[#5865F2] focus:ring-1 focus:ring-[#5865F2]/20 rounded-xl text-sm resize-none overflow-hidden min-h-[40px] max-h-[160px] px-3 py-2 leading-[1.5] placeholder:text-muted-foreground focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed transition-colors"
670+ placeholder = "Ask Fixie about FiveM, RedM, txAdmin..."
671+ className = "w-full bg-fd-muted/30 border border-fd-border focus:border-[#5865F2] focus:ring-1 focus:ring-[#5865F2]/20 rounded-xl text-sm resize-none overflow-hidden min-h-[40px] max-h-[120px] sm:max-h-[ 160px] px-3 py-2 leading-[1.5] placeholder:text-muted-foreground focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed transition-colors"
673672 disabled = { isLoading }
674673 rows = { 1 }
675674 style = { { height : "40px" } }
0 commit comments