Skip to content

🐛 [Bug]: 气泡组件中图文混合边框太小 #331

Description

@gene9831

Tiny Robot Version

latest

Vue Version

latest

Link to minimal reproduction

气泡组件匹配到Box为Image的渲染器只判断了第一个content类型

{
find: (_, content) => content?.type === 'image_url',
renderer: markRaw(Box),
priority: BubbleRendererMatchPriority.NORMAL,
attributes: { 'data-box-type': 'image' },
},

如果第一个是content是图片,后面的是文本,仍然是Image Box。Image Box的边框不适用于文本

Image

Steps to reproduce

如果message.content是数组,第一个是content是图片,后面的是文本,仍然是Image Box。Image Box的边框不适用于文本

What is expected

No response

What is actually happening

No response

What is your project name

None

Any additional comments (optional)

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions