|
43 | 43 | <!-- 消息内容 --> |
44 | 44 | <div class="content-section"> |
45 | 45 | <!-- 主要消息 --> |
46 | | - <div v-if="config.msg" class="message-container glass-effect"> |
| 46 | + <div v-if="config.msg || config.htmlMsg" class="message-container glass-effect"> |
47 | 47 | <div class="message-bg gradient-primary"></div> |
48 | 48 | <div class="message-content"> |
49 | 49 | <div class="message-icon"> |
50 | 50 | <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"> |
51 | 51 | <path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4l4 4 4-4h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/> |
52 | 52 | </svg> |
53 | 53 | </div> |
54 | | - <div class="message-text" v-html="formatMessage(config.msg)"></div> |
| 54 | + <div class="message-text" v-html="formatMessage(config.htmlMsg || config.msg)"></div> |
55 | 55 | </div> |
56 | 56 | </div> |
57 | 57 |
|
|
74 | 74 | <div class="image-bg gradient-accent"></div> |
75 | 75 | <img |
76 | 76 | :src="config.imageUrl" |
77 | | - :style="{ height: config.imageHeight ? `${config.imageHeight}px` : 'auto' }" |
| 77 | + :style="{ height: config.imageHeight ? `${config.imageHeight}px` : '200px' }" |
78 | 78 | class="action-image-modern" |
79 | 79 | @load="onImageLoad" |
80 | 80 | @error="onImageError" |
@@ -468,7 +468,7 @@ export default { |
468 | 468 | <style scoped> |
469 | 469 | /* 主容器 */ |
470 | 470 | .msgbox-action-modern { |
471 | | - padding: 24px; |
| 471 | + padding: 16px; |
472 | 472 | background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)); |
473 | 473 | border-radius: 16px; |
474 | 474 | backdrop-filter: blur(10px); |
@@ -542,7 +542,7 @@ export default { |
542 | 542 | .icon-section { |
543 | 543 | display: flex; |
544 | 544 | justify-content: center; |
545 | | - margin-bottom: 24px; |
| 545 | + margin-bottom: 16px; |
546 | 546 | } |
547 | 547 |
|
548 | 548 | .icon-container { |
@@ -617,12 +617,12 @@ export default { |
617 | 617 | .content-section { |
618 | 618 | display: flex; |
619 | 619 | flex-direction: column; |
620 | | - gap: 16px; |
| 620 | + gap: 12px; |
621 | 621 | } |
622 | 622 |
|
623 | 623 | /* 消息容器 */ |
624 | 624 | .message-container { |
625 | | - padding: 20px; |
| 625 | + padding: 16px; |
626 | 626 | position: relative; |
627 | 627 | } |
628 | 628 |
|
@@ -703,7 +703,8 @@ export default { |
703 | 703 |
|
704 | 704 | .action-image-modern { |
705 | 705 | max-width: 100%; |
706 | | - height: auto; |
| 706 | + height: 100px; |
| 707 | + object-fit: cover; |
707 | 708 | border-radius: 12px; |
708 | 709 | box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); |
709 | 710 | position: relative; |
|
0 commit comments