Просмотр исходного кода

fix: hove x scroll shake (#449)

tags/0.3.6
Joel 2 лет назад
Родитель
Сommit
addf150a9e
Аккаунт пользователя с таким Email не найден
2 измененных файлов: 8 добавлений и 7 удалений
  1. 7
    5
      web/app/components/app/chat/index.tsx
  2. 1
    2
      web/app/components/app/configuration/debug/index.tsx

+ 7
- 5
web/app/components/app/chat/index.tsx Просмотреть файл

} }
</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
value={content}
className={cn(s.copyBtn, 'mr-1')}
/>
{!item.isOpeningStatement && (
<CopyBtn
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)}
}, [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) => {

+ 1
- 2
web/app/components/app/configuration/debug/index.tsx Просмотреть файл

{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}>
{/* {JSON.stringify(chatList)} */}
<div className="h-full overflow-y-auto overflow-x-hidden" ref={chatListDomRef}>
<Chat <Chat
chatList={chatList} chatList={chatList}
onSend={onSend} onSend={onSend}

Загрузка…
Отмена
Сохранить