11<template >
22 <!-- 问题内容 -->
33 <div class =" question-content item-content mb-16 lighter" >
4- <div class =" content mr-16" >
4+ <div
5+ class =" content mr-12 p-12-16 border-r-8"
6+ :class =" document_list.length >= 2 ? 'media_2' : `media_${document_list.length}`"
7+ >
58 <div class =" text break-all pre-wrap" >
69 <div class =" mb-8" v-if =" document_list.length" >
7- <el-row :gutter =" 10" >
8- <el-col
9- v-for =" (item, index) in document_list"
10- :key =" index"
11- :xs =" 24"
12- :sm =" props.type === 'debug-ai-chat' ? 24 : 12"
13- :md =" props.type === 'debug-ai-chat' ? 24 : 12"
14- :lg =" props.type === 'debug-ai-chat' ? 24 : 12"
15- :xl =" props.type === 'debug-ai-chat' ? 24 : 12"
16- class =" mb-8 w-full"
17- >
10+ <el-space wrap class =" w-full media-file-width" >
11+ <template v-for =" (item , index ) in document_list " :key =" index " >
1812 <el-card shadow =" never" style =" --el-card-padding : 8px " class =" download-file cursor" >
1913 <div class =" download-button flex align-center" @click =" downloadFile(item)" >
2014 <el-icon class =" mr-4" >
2923 </div >
3024 </div >
3125 </el-card >
32- </el-col >
33- </el-row >
26+ </template >
27+ </el-space >
3428 </div >
3529 <div class =" mb-8" v-if =" image_list.length" >
3630 <el-space wrap >
5347 </el-space >
5448 </div >
5549 <div class =" mb-8" v-if =" audio_list.length" >
56- <el-row :gutter =" 10" >
57- <el-col
58- v-for =" (item, index) in audio_list"
59- :key =" index"
60- :xs =" 24"
61- :sm =" props.type === 'debug-ai-chat' ? 24 : 12"
62- :md =" props.type === 'debug-ai-chat' ? 24 : 12"
63- :lg =" props.type === 'debug-ai-chat' ? 24 : 12"
64- :xl =" props.type === 'debug-ai-chat' ? 24 : 12"
65- class =" mb-8"
66- >
50+ <el-space wrap >
51+ <template v-for =" (item , index ) in audio_list " :key =" index " >
6752 <div class =" file cursor border-r-4" v-if =" item.url" >
6853 <audio
6954 :src =" item.url"
7257 class =" border-r-4"
7358 />
7459 </div >
75- </el-col >
76- </el-row >
60+ </template >
61+ </el-space >
7762 </div >
78- {{ chatRecord.problem_text }}
63+ < span > {{ chatRecord.problem_text }}</ span >
7964 </div >
8065 </div >
8166 <div class =" avatar" >
@@ -140,6 +125,16 @@ onMounted(() => {})
140125.question-content {
141126 display : flex ;
142127 justify-content : flex-end ;
128+ padding-left : var (--padding-left );
129+ width : 100% ;
130+ box-sizing : border-box ;
131+
132+ .content {
133+ background : #d6e2ff ;
134+ padding-left : 16px ;
135+ padding-right : 16px ;
136+
137+ }
143138
144139 .download-file {
145140 height : 43px ;
@@ -163,5 +158,44 @@ onMounted(() => {})
163158 display : none ;
164159 }
165160 }
161+ .media-file-width {
162+ :deep (.el-space__item ) {
163+ min-width : 40% !important ;
164+ flex-grow : 1 ;
165+ }
166+ }
167+ .media_2 {
168+ flex : 1 ;
169+ }
170+ .media_0 {
171+ flex : inherit ;
172+ }
173+ .media_1 {
174+ width : 50% ;
175+ }
176+ }
177+ @media only screen and (max-width : 768px ) {
178+ .question-content {
179+ .media-file-width {
180+ :deep (.el-space__item ) {
181+ min-width : 100% !important ;
182+ }
183+ }
184+ .media_1 {
185+ width : 100% ;
186+ }
187+ }
188+ }
189+ .debug-ai-chat {
190+ .question-content {
191+ .media-file-width {
192+ :deep (.el-space__item ) {
193+ min-width : 100% !important ;
194+ }
195+ }
196+ .media_1 {
197+ width : 100% ;
198+ }
199+ }
166200}
167201 </style >
0 commit comments