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

This commit is contained in:
zoujing committed 2026-04-07 12:19:15 +08:00
1 parent 605183e8dc
commit c9f350b157
3 files changed
+13 -4

No files matched your search

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