diff --git a/web/app/components/base/chat/chat/answer/operation.tsx b/web/app/components/base/chat/chat/answer/operation.tsx index d03791ddf2..0c8d23de33 100644 --- a/web/app/components/base/chat/chat/answer/operation.tsx +++ b/web/app/components/base/chat/chat/answer/operation.tsx @@ -81,13 +81,13 @@ const Operation: FC = ({ const operationWidth = useMemo(() => { let width = 0 if (!isOpeningStatement) - width += 28 + width += 26 if (!isOpeningStatement && showPromptLog) - width += 102 + 8 + width += 28 + 8 if (!isOpeningStatement && config?.text_to_speech?.enabled) - width += 33 + width += 26 if (!isOpeningStatement && config?.supportAnnotation && config?.annotation_reply?.enabled) - width += 56 + 8 + width += 26 if (config?.supportFeedback && !localFeedback?.rating && onFeedback && !isOpeningStatement) width += 60 + 8 if (config?.supportFeedback && localFeedback?.rating && onFeedback && !isOpeningStatement) @@ -140,7 +140,7 @@ const Operation: FC = ({ )} )} - {!isOpeningStatement && config?.supportFeedback && onFeedback && ( + {!isOpeningStatement && config?.supportFeedback && !localFeedback?.rating && onFeedback && (
{!localFeedback?.rating && ( <> @@ -152,6 +152,10 @@ const Operation: FC = ({ )} +
+ )} + {!isOpeningStatement && config?.supportFeedback && localFeedback?.rating && onFeedback && ( +
{localFeedback?.rating === 'like' && ( handleFeedback(null)}>