From dc0ae4dc428d4c5dd2ee5351893453a35daf7886 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 26 Feb 2025 19:38:48 +0800 Subject: [PATCH] style: Optimize chat page style --- .../component/answer-content/index.vue | 6 +- .../component/prologue-content/index.vue | 2 +- .../component/question-content/index.vue | 90 +++++++++++++------ .../ai-chat/component/user-form/index.vue | 2 +- ui/src/components/ai-chat/index.scss | 5 +- ui/src/components/ai-chat/index.vue | 2 +- ui/src/styles/app.scss | 5 +- ui/src/views/chat/pc/index.vue | 2 +- 8 files changed, 74 insertions(+), 40 deletions(-) diff --git a/ui/src/components/ai-chat/component/answer-content/index.vue b/ui/src/components/ai-chat/component/answer-content/index.vue index 73adf3bfd..4393b52ac 100644 --- a/ui/src/components/ai-chat/component/answer-content/index.vue +++ b/ui/src/components/ai-chat/component/answer-content/index.vue @@ -6,7 +6,7 @@
- + - + {{ $t('chat.tip.stopAnswer') }} - + {{ $t('chat.tip.answerLoading') }} diff --git a/ui/src/components/ai-chat/component/prologue-content/index.vue b/ui/src/components/ai-chat/component/prologue-content/index.vue index 3cf7a467e..0ed86b625 100644 --- a/ui/src/components/ai-chat/component/prologue-content/index.vue +++ b/ui/src/components/ai-chat/component/prologue-content/index.vue @@ -6,7 +6,7 @@
- +
-
+
- - + + +
@@ -53,17 +47,8 @@
- - + + +
- {{ chatRecord.problem_text }} + {{ chatRecord.problem_text }}
@@ -140,6 +125,16 @@ onMounted(() => {}) .question-content { display: flex; justify-content: flex-end; + padding-left: var(--padding-left); + width: 100%; + box-sizing: border-box; + + .content { + background: #d6e2ff; + padding-left: 16px; + padding-right: 16px; + + } .download-file { height: 43px; @@ -163,5 +158,44 @@ onMounted(() => {}) display: none; } } + .media-file-width { + :deep(.el-space__item) { + min-width: 40% !important; + flex-grow: 1; + } + } + .media_2 { + flex: 1; + } + .media_0 { + flex: inherit; + } + .media_1 { + width: 50%; + } +} +@media only screen and (max-width: 768px) { + .question-content { + .media-file-width { + :deep(.el-space__item) { + min-width: 100% !important; + } + } + .media_1 { + width: 100%; + } + } +} +.debug-ai-chat { + .question-content { + .media-file-width { + :deep(.el-space__item) { + min-width: 100% !important; + } + } + .media_1 { + width: 100%; + } + } } diff --git a/ui/src/components/ai-chat/component/user-form/index.vue b/ui/src/components/ai-chat/component/user-form/index.vue index b2c89a0e4..980ad8663 100644 --- a/ui/src/components/ai-chat/component/user-form/index.vue +++ b/ui/src/components/ai-chat/component/user-form/index.vue @@ -7,7 +7,7 @@ class="mb-16" style="padding: 0 24px" > - +
-
+
-

+

{{ currentChatName }}