瀏覽代碼

fix: chat style (#1463)

tags/0.3.29
zxhlyh 2 年之前
父節點
當前提交
279f099ba0
No account linked to committer's email address
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 1
    1
      web/app/components/app/chat/more-info/index.tsx
  2. 0
    1
      web/app/components/app/chat/style.module.css

+ 1
- 1
web/app/components/app/chat/more-info/index.tsx 查看文件

@@ -9,7 +9,7 @@ export type IMoreInfoProps = { more: MessageMore; isQuestion: boolean }

const MoreInfo: FC<IMoreInfoProps> = ({ more, isQuestion }) => {
const { t } = useTranslation()
return (<div className={`mt-1 space-x-2 text-xs text-gray-400 ${isQuestion ? 'mr-2 text-right ' : 'ml-2 text-left float-right'}`}>
return (<div className={`mt-1 w-full text-xs text-gray-400 !text-right ${isQuestion ? 'mr-2 text-right ' : 'ml-2 text-left float-right'}`}>
<span>{`${t('appLog.detail.timeConsuming')} ${more.latency}${t('appLog.detail.second')}`}</span>
<span>{`${t('appLog.detail.tokenCost')} ${formatNumber(more.tokens)}`}</span>
<span>· </span>

+ 0
- 1
web/app/components/app/chat/style.module.css 查看文件

@@ -53,7 +53,6 @@
justify-content: flex-end;
}

.answerWrap,
.question {
display: inline-block;
max-width: 100%;

Loading…
取消
儲存