46
46
:class =" {
47
47
'kefu-message': KeFuMessageContentTypeEnum.TEXT === item.contentType
48
48
}"
49
- class =" p-10px"
50
49
>
51
50
<!-- 文本消息 -->
52
51
<MessageItem :message =" item" >
53
52
<template v-if =" KeFuMessageContentTypeEnum .TEXT === item .contentType " >
54
53
<div
55
54
v-dompurify-html =" replaceEmoji(getMessageContent(item).text || item.content)"
56
- class =" flex items-center"
55
+ class =" flex items-center h-1/1 "
57
56
></div >
58
57
</template >
59
58
</MessageItem >
64
63
:initial-index =" 0"
65
64
:preview-src-list =" [getMessageContent(item).picUrl || item.content]"
66
65
:src =" getMessageContent(item).picUrl || item.content"
67
- class =" w-200px"
66
+ class =" w-200px mx-10px "
68
67
fit =" contain"
69
68
preview-teleported
70
69
/>
79
78
:spuId =" getMessageContent(item).spuId"
80
79
:stock =" getMessageContent(item).stock"
81
80
:title =" getMessageContent(item).spuName"
82
- class =" max-w-300px"
81
+ class =" max-w-300px mx-10px "
83
82
/>
84
83
</MessageItem >
85
84
<!-- 订单消息 -->
86
85
<MessageItem :message =" item" >
87
86
<OrderItem
88
87
v-if =" KeFuMessageContentTypeEnum.ORDER === item.contentType"
89
88
:message =" item"
90
- class =" max-w-100%"
89
+ class =" max-w-100% mx-10px "
91
90
/>
92
91
</MessageItem >
93
92
</div >
@@ -373,7 +372,7 @@ const showTime = computed(() => (item: KeFuMessageRespVO, index: number) => {
373
372
374
373
<style lang="scss" scoped>
375
374
.kefu {
376
- background-color : #fff ;
375
+ background-color : #f5f5f5 ;
377
376
position : relative ;
378
377
width : calc (100% - 300px - 260px );
379
378
@@ -389,12 +388,23 @@ const showTime = computed(() => (item: KeFuMessageRespVO, index: number) => {
389
388
}
390
389
391
390
.kefu-header {
392
- background : #fbfbfb ;
393
- box-shadow : 0 0 0 0 #dcdfe6 ;
391
+ background-color : #f5f5f5 ;
392
+ position : relative ;
394
393
display : flex ;
395
394
align-items : center ;
396
395
justify-content : space-between ;
397
396
397
+ & ::before {
398
+ content : ' ' ;
399
+ position : absolute ;
400
+ bottom : 0 ;
401
+ left : 0 ;
402
+ width : 100% ;
403
+ height : 1px ; /* 初始宽度 */
404
+ background-color : var (--el-border-color );
405
+ transform : scaleY (0.3 ); /* 缩小视觉高度 */
406
+ }
407
+
398
408
& -title {
399
409
font-size : 18px ;
400
410
font-weight : bold ;
@@ -423,7 +433,7 @@ const showTime = computed(() => (item: KeFuMessageRespVO, index: number) => {
423
433
justify-content : flex-start ;
424
434
425
435
.kefu-message {
426
- background-color : rgb ( 245 , 245 , 245 ) ;
436
+ background-color : #fff ;
427
437
margin-left : 10px ;
428
438
margin-top : 3px ;
429
439
border-top-right-radius : 10px ;
@@ -452,9 +462,9 @@ const showTime = computed(() => (item: KeFuMessageRespVO, index: number) => {
452
462
padding : 5px 10px ;
453
463
width : auto ;
454
464
max-width : 50% ;
455
- text-align : left ;
456
- display : inline-block !important ;
457
- word-break : break-all ;
465
+ // text-align: left;
466
+ // display: inline-block !important;
467
+ // word-break: break-all;
458
468
transition : all 0.2s ;
459
469
460
470
& :hover {
@@ -468,7 +478,7 @@ const showTime = computed(() => (item: KeFuMessageRespVO, index: number) => {
468
478
background-color : rgba (0 , 0 , 0 , 0.1 );
469
479
border-radius : 8px ;
470
480
padding : 0 5px ;
471
- color : #999 ;
481
+ color : #fff ;
472
482
font-size : 10px ;
473
483
}
474
484
}
@@ -500,6 +510,7 @@ const showTime = computed(() => (item: KeFuMessageRespVO, index: number) => {
500
510
501
511
::v-deep (textarea ) {
502
512
resize : none ;
513
+ background-color : #f5f5f5 ;
503
514
}
504
515
505
516
:deep(.el-input__wrapper ) {
0 commit comments