@@ -13,7 +13,7 @@ import { Hex } from "viem";
1313import { defaultColors } from "../../lib/constants" ;
1414import { BITTE_IMG } from "../../lib/images" ;
1515import { executeLocalToolCall } from "../../lib/local-agent" ;
16- import { cn , shortenAddress } from "../../lib/utils" ;
16+ import { shortenAddress } from "../../lib/utils" ;
1717import {
1818 AssistantsMode ,
1919 BitteAiChatProps ,
@@ -174,10 +174,8 @@ export const ChatContent = ({
174174 } , [ messages . length , isInProgress , options ] ) ;
175175
176176 return (
177- < div className = 'bitte-flex bitte-h-full bitte-w-full bitte-flex-col bitte-gap-4 bitte-text-justify' >
178- < div
179- className = 'bitte-chat-main bitte-text-start bitte-relative bitte-flex bitte-min-h-[220px] lg:bitte-min-h-[360px] bitte-w-full bitte-h-full bitte-grow-0 bitte-overflow-y-auto lg:bitte-rounded-md bitte-max-lg:flex-col bitte-border-t bitte-border-b lg:bitte-border lg:bitte-pl-6'
180- style = { {
177+ < div className = 'bitte-flex bitte-flex-col bitte-h-full bitte-min-h-0 bitte-w-full bitte-gap-4 bitte-text-justify' >
178+ < div className = "bitte-chat-main bitte-text-start bitte-relative bitte-flex bitte-flex-col bitte-flex-grow bitte-min-h-0 bitte-w-full lg:bitte-rounded-md bitte-max-lg:flex-col bitte-border-t bitte-border-b lg:bitte-border lg:bitte-pl-6" style = { {
181179 backgroundColor : generalBackground ,
182180 borderColor : borderColor ,
183181 } }
@@ -202,16 +200,9 @@ export const ChatContent = ({
202200
203201 < div
204202 ref = { messagesRef }
205- className = ' bitte-flex bitte-h-full bitte-w-full bitte-justify-center bitte-overflow-y-auto bitte-overflow-x-hidden bitte-p-4'
203+ className = " bitte-flex bitte-flex-grow bitte-min-h-0 bitte-w-full bitte-justify-center bitte-overflow-y-auto bitte-overflow-x-hidden bitte-p-4"
206204 >
207- < div
208- className = { cn (
209- "bitte-mx-auto bitte-flex bitte-w-full bitte-flex-col md:bitte-mx-24 2xl:bitte-mx-56" ,
210- ! ! agentId
211- ? "bitte-h-[calc(100%-240px)]"
212- : "bitte-h-[calc(100%-208px)]"
213- ) }
214- >
205+ < div className = "bitte-mx-auto bitte-flex bitte-w-full bitte-flex-col md:bitte-mx-24 2xl:bitte-mx-56" >
215206 { messages . length === 0 &&
216207 ( options ?. welcomeMessageComponent ? (
217208 options . welcomeMessageComponent
0 commit comments