mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-20 15:10:59 +08:00
fix: update input style in snapshot tests and format message mentions in MessageContent component
This commit is contained in:
parent
8191fbc35c
commit
6c28d6c6d5
@ -8,7 +8,7 @@ exports[`InputEmbeddingDimension > basic rendering > should match snapshot with
|
|||||||
<input
|
<input
|
||||||
data-testid="input-number"
|
data-testid="input-number"
|
||||||
placeholder="请输入维度大小"
|
placeholder="请输入维度大小"
|
||||||
style="flex: 1;"
|
style="flex: 1 1 0%;"
|
||||||
type="number"
|
type="number"
|
||||||
value="1536"
|
value="1536"
|
||||||
/>
|
/>
|
||||||
@ -43,7 +43,7 @@ exports[`InputEmbeddingDimension > basic rendering > should match snapshot with
|
|||||||
<input
|
<input
|
||||||
data-testid="input-number"
|
data-testid="input-number"
|
||||||
placeholder="请输入维度大小"
|
placeholder="请输入维度大小"
|
||||||
style="flex: 1;"
|
style="flex: 1 1 0%;"
|
||||||
type="number"
|
type="number"
|
||||||
value=""
|
value=""
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -15,7 +15,9 @@ const MessageContent: React.FC<Props> = ({ message }) => {
|
|||||||
<>
|
<>
|
||||||
{!isEmpty(message.mentions) && (
|
{!isEmpty(message.mentions) && (
|
||||||
<Flex gap="8px" wrap style={{ marginBottom: '10px' }}>
|
<Flex gap="8px" wrap style={{ marginBottom: '10px' }}>
|
||||||
{message.mentions?.map((model) => <MentionTag key={getModelUniqId(model)}>{'@' + model.name}</MentionTag>)}
|
{message.mentions?.map((model) => (
|
||||||
|
<MentionTag key={getModelUniqId(model)}>{'@' + model.name}</MentionTag>
|
||||||
|
))}
|
||||||
</Flex>
|
</Flex>
|
||||||
)}
|
)}
|
||||||
<MessageBlockRenderer blocks={message.blocks} message={message} />
|
<MessageBlockRenderer blocks={message.blocks} message={message} />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user