Unverified Commit addf150a authored by Joel's avatar Joel Committed by GitHub

fix: hove x scroll shake (#449)

parent cad1532f
...@@ -352,10 +352,12 @@ const Answer: FC<IAnswerProps> = ({ item, feedbackDisabled = false, isHideFeedba ...@@ -352,10 +352,12 @@ const Answer: FC<IAnswerProps> = ({ item, feedbackDisabled = false, isHideFeedba
} }
</div> </div>
<div className='absolute top-[-14px] right-[-14px] flex flex-row justify-end gap-1'> <div className='absolute top-[-14px] right-[-14px] flex flex-row justify-end gap-1'>
<CopyBtn {!item.isOpeningStatement && (
value={content} <CopyBtn
className={cn(s.copyBtn, 'mr-1')} value={content}
/> className={cn(s.copyBtn, 'mr-1')}
/>
)}
{!feedbackDisabled && !item.feedbackDisabled && renderItemOperation(displayScene !== 'console')} {!feedbackDisabled && !item.feedbackDisabled && renderItemOperation(displayScene !== 'console')}
{/* Admin feedback is displayed only in the background. */} {/* Admin feedback is displayed only in the background. */}
{!feedbackDisabled && renderFeedbackRating(localAdminFeedback?.rating, false, false)} {!feedbackDisabled && renderFeedbackRating(localAdminFeedback?.rating, false, false)}
...@@ -487,7 +489,7 @@ const Chat: FC<IChatProps> = ({ ...@@ -487,7 +489,7 @@ const Chat: FC<IChatProps> = ({
}, [suggestionList]) }, [suggestionList])
return ( return (
<div className={cn(!feedbackDisabled && 'px-3.5', 'h-full')}> <div className={cn('px-3.5', 'h-full')}>
{/* Chat List */} {/* Chat List */}
<div className="h-full space-y-[30px]"> <div className="h-full space-y-[30px]">
{chatList.map((item) => { {chatList.map((item) => {
......
...@@ -370,8 +370,7 @@ const Debug: FC<IDebug> = ({ ...@@ -370,8 +370,7 @@ const Debug: FC<IDebug> = ({
{mode === AppType.chat && ( {mode === AppType.chat && (
<div className="mt-[34px] h-full flex flex-col"> <div className="mt-[34px] h-full flex flex-col">
<div className={cn(doShowSuggestion ? 'pb-[140px]' : (isResponsing ? 'pb-[113px]' : 'pb-[66px]'), 'relative mt-1.5 grow h-[200px] overflow-hidden')}> <div className={cn(doShowSuggestion ? 'pb-[140px]' : (isResponsing ? 'pb-[113px]' : 'pb-[66px]'), 'relative mt-1.5 grow h-[200px] overflow-hidden')}>
<div className="h-full overflow-y-auto" ref={chatListDomRef}> <div className="h-full overflow-y-auto overflow-x-hidden" ref={chatListDomRef}>
{/* {JSON.stringify(chatList)} */}
<Chat <Chat
chatList={chatList} chatList={chatList}
onSend={onSend} onSend={onSend}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment