feat: improved SVG output UX (#8765)

This commit is contained in:
Hash Brown
2024-09-26 19:41:59 +08:00
committed by GitHub
parent 9a4b53a212
commit 3dfbc348e3
4 changed files with 95 additions and 61 deletions

View File

@@ -90,7 +90,7 @@ const ChatRecord = () => {
return (
<div
className={`
flex flex-col w-[400px] rounded-l-2xl h-full border border-black/2 shadow-xl
flex flex-col w-[420px] rounded-l-2xl h-full border border-black/2 shadow-xl
`}
style={{
background: 'linear-gradient(156deg, rgba(242, 244, 247, 0.80) 0%, rgba(242, 244, 247, 0.00) 99.43%), var(--white, #FFF)',
@@ -121,7 +121,7 @@ const ChatRecord = () => {
supportCitationHitInfo: true,
} as any}
chatList={chatList}
chatContainerClassName='px-4'
chatContainerClassName='px-3'
chatContainerInnerClassName='pt-6 w-full max-w-full mx-auto'
chatFooterClassName='px-4 rounded-b-2xl'
chatFooterInnerClassName='pb-4 w-full max-w-full mx-auto'
@@ -129,6 +129,8 @@ const ChatRecord = () => {
noChatInput
allToolIcons={{}}
showPromptLog
noSpacing
chatAnswerContainerInner='!pr-2'
/>
</div>
</>