feat: 消息流中的图片样式处理

This commit is contained in:
2026-04-07 12:19:15 +08:00
parent 605183e8dc
commit c9f350b157
3 changed files with 13 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
<template>
<view class="container">
<view class="chat-ai">
<view class="loading-container">
<view class="container-content">
<image
v-if="isLoading"
class="loading-img"

View File

@@ -16,7 +16,7 @@
}
}
.loading-container {
.container-content {
display: flex;
align-items: center;
max-width: 100%; // ✅ 限制最大宽度

View File

@@ -1,5 +1,5 @@
<template>
<view>
<view class="container">
<zero-markdown-view :markdown="text" :aiMode="true"></zero-markdown-view>
</view>
</template>
@@ -15,4 +15,13 @@ defineProps({
});
</script>
<style scoped></style>
<style scoped>
.container {
width: 100%;
}
.container ::v-deep image,
.container ::v-deep video,
.container ::v-deep iframe {
width: 100% !important;
}
</style>