处理文件类型消息最大宽度

This commit is contained in:
wangyifeng 2025-07-04 14:00:43 +08:00
parent 481719a685
commit 845281377f

View File

@ -311,7 +311,7 @@ const previewPDF = (item) => {
// downloadAndOpenFile(item) // downloadAndOpenFile(item)
// }) // })
// } // }
if(checkFileCanPreview(item?.extra?.path || '')){ if(checkFileCanPreview(item || '')){
window.open( window.open(
`${import.meta.env.VITE_PAGE_URL}/office?url=${item}`, `${import.meta.env.VITE_PAGE_URL}/office?url=${item}`,
'_blank', '_blank',
@ -382,7 +382,8 @@ const previewPDF = (item) => {
} }
.file-message-wrapper { .file-message-wrapper {
.condition-each-result-attachments { .condition-each-result-attachments {
width: 289px; min-width: 289px;
max-width: 660px;
height: 62px; height: 62px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -452,6 +453,7 @@ const previewPDF = (item) => {
span { span {
color: #191919; color: #191919;
word-break: break-all; word-break: break-all;
max-width: 660px;
} }
.searchRecordDetail-fastLocal { .searchRecordDetail-fastLocal {
display: none; display: none;