修改了ai气泡大小

This commit is contained in:
2026-07-08 10:58:46 +08:00
parent bf5203b081
commit f0c8904d33
4 changed files with 11 additions and 2 deletions

View File

@@ -427,6 +427,11 @@
border-bottom-right-radius: 8rpx;
}
/* AI 回复气泡满屏 */
.chat-content-assistant {
max-width: 100%;
}
.chat-content:not(.chat-content-user) {
border-bottom-left-radius: 8rpx;
}

View File

@@ -117,7 +117,7 @@
<!-- <view v-if="message.role ==='assistant'" class="iconfont icon-Robot"></view> -->
<!-- <view v-if="message.role ==='user'" class="iconfont icon-yonghuziliao"></view> -->
</view>
<view class="chat-content" :class="{'chat-content-user':message.role==='user'}"
<view class="chat-content" :class="{'chat-content-user':message.role==='user', 'chat-content-assistant':message.role==='assistant'}"
@click="showMessageDetail(message)"
v-if="message.content && String(message.content).trim() !== ''">
<!-- 文本内容 -->