From 114a0f4d9ab739e58bf9ffd14439a436bf848541 Mon Sep 17 00:00:00 2001 From: dongqian <3475123872@qq.com> Date: Wed, 25 Jun 2025 10:14:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=E7=94=A8=E6=88=B7=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=88=B0=E5=8F=B3=E8=BE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AiEmotion.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/AiEmotion.vue b/src/views/AiEmotion.vue index 847e61f..2a765c8 100644 --- a/src/views/AiEmotion.vue +++ b/src/views/AiEmotion.vue @@ -1826,6 +1826,7 @@ defineExpose({ .message-container { display: flex; margin-bottom: 10px; + width: 100%; } .user-message { @@ -1836,7 +1837,7 @@ defineExpose({ max-width: 60%; text-align: left; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); - align-self: flex-end; + margin-left: auto; /* 将用户消息推到右边 */ } .ai-message { @@ -1847,7 +1848,7 @@ defineExpose({ max-width: 60%; text-align: left; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); - align-self: flex-start; + margin-right: auto; /* 将AI消息保持在左边 */ } .input-container {