fix: overflow issues in chat history (#8062)

This commit is contained in:
Yi Xiao
2024-09-06 19:20:18 +08:00
committed by GitHub
parent 900fd82a92
commit cdb08be951
7 changed files with 63 additions and 62 deletions

View File

@@ -103,9 +103,9 @@ const ChatRecord = () => {
} as any}
chatList={chatMessageList}
chatContainerClassName='px-4'
chatContainerInnerClassName='pt-6'
chatContainerInnerClassName='pt-6 w-full max-w-full mx-auto'
chatFooterClassName='px-4 rounded-b-2xl'
chatFooterInnerClassName='pb-4'
chatFooterInnerClassName='pb-4 w-full max-w-full mx-auto'
chatNode={<UserInput />}
noChatInput
allToolIcons={{}}

View File

@@ -103,9 +103,9 @@ const ChatWrapper = forwardRef<ChatWrapperRefType, ChatWrapperProps>(({ showConv
chatList={chatList}
isResponding={isResponding}
chatContainerClassName='px-3'
chatContainerInnerClassName='pt-6'
chatContainerInnerClassName='pt-6 w-full max-w-full mx-auto'
chatFooterClassName='px-4 rounded-bl-2xl'
chatFooterInnerClassName='pb-4'
chatFooterInnerClassName='pb-4 w-full max-w-full mx-auto'
onSend={doSend}
onStopResponding={handleStop}
chatNode={(

View File

@@ -88,7 +88,6 @@ const DebugAndPreview = () => {
<RiEqualizer2Line className='w-4 h-4' />
</ActionButton>
</Tooltip>
{expanded && <div className='absolute z-10 bottom-[-17px] right-[5px] w-3 h-3 bg-components-panel-on-panel-item-bg border-l-[0.5px] border-t-[0.5px] border-components-panel-border-subtle rotate-45'/>}
</div>
)}
<div className='mx-3 w-[1px] h-3.5 bg-gray-200'></div>