Skip to content

Commit

Permalink
Merge pull request #490 from lixinghua123/dev-lixinghua
Browse files Browse the repository at this point in the history
fix: LLM question picture display markdown button
  • Loading branch information
lihqi authored Jun 21, 2024
2 parents a709cba + d5e58bd commit 526a42c
Showing 1 changed file with 19 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,28 +85,26 @@ const Header = (props: IProps) => {
}}
>
{t('Title')}
{!isImg && (
<span style={{ display: 'flex' }}>
<Radio.Group
value={dataFormatType}
onChange={(e) => {
setDataFormatType(e.target.value);
}}
<span style={{ display: 'flex' }}>
<Radio.Group
value={dataFormatType}
onChange={(e) => {
setDataFormatType(e.target.value);
}}
>
<Radio.Button
value={EDataFormatType.Default}
style={{ textAlign: 'center', width: '52px' }}
>{`</>`}</Radio.Button>
<Radio.Button
value={EDataFormatType.Markdown}
style={{ textAlign: 'center', width: '52px' }}
>
<Radio.Button
value={EDataFormatType.Default}
style={{ textAlign: 'center', width: '52px' }}
>{`</>`}</Radio.Button>
<Radio.Button
value={EDataFormatType.Markdown}
style={{ textAlign: 'center', width: '52px' }}
>
<FileTextOutlined />
</Radio.Button>
</Radio.Group>
<span style={{ marginLeft: '8px', width: '4px', background: '#1890ff' }} />
</span>
)}
<FileTextOutlined />
</Radio.Button>
</Radio.Group>
<span style={{ marginLeft: '8px', width: '4px', background: '#1890ff' }} />
</span>
</div>
<div className={`${LLMViewCls}__headerContent`}>
<Content question={question} dataFormatType={dataFormatType} isImg={isImg} />
Expand Down

0 comments on commit 526a42c

Please sign in to comment.