feat: 消息流中的图片样式处理
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user