From 847a2d4d8ccd8215e32723ef348f4e16a3a52027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=80=80=E7=91=BE?= Date: Mon, 19 Jun 2023 14:28:10 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E4=BB=A3=E7=A0=81=E5=B1=95=E7=A4=BA=20(#1752)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chat/components/Header/index.vue | 16 ++++++++-------- src/views/chat/components/Message/style.less | 9 +++++++++ src/views/chat/index.vue | 6 +++--- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/views/chat/components/Header/index.vue b/src/views/chat/components/Header/index.vue index ea53f27..c16fc47 100644 --- a/src/views/chat/components/Header/index.vue +++ b/src/views/chat/components/Header/index.vue @@ -9,7 +9,7 @@ interface Props { interface Emit { (ev: 'export'): void - (ev: 'toggleUsingContext'): void + (ev: 'handleClear'): void } defineProps() @@ -36,8 +36,8 @@ function handleExport() { emit('export') } -function toggleUsingContext() { - emit('toggleUsingContext') +function handleClear() { + emit('handleClear') } @@ -62,16 +62,16 @@ function toggleUsingContext() { {{ currentChatHistory?.title ?? '' }}
- - - - - + + + + +
diff --git a/src/views/chat/components/Message/style.less b/src/views/chat/components/Message/style.less index 0b2bbf8..5d4ffbf 100644 --- a/src/views/chat/components/Message/style.less +++ b/src/views/chat/components/Message/style.less @@ -73,3 +73,12 @@ html.dark { background-color: #282c34; } } + +@media screen and (max-width: 533px) { + .markdown-body .code-block-wrapper { + padding: unset; + code { + padding: 24px 16px 16px 16px; + } + } +} diff --git a/src/views/chat/index.vue b/src/views/chat/index.vue index 1735bc8..420e3be 100644 --- a/src/views/chat/index.vue +++ b/src/views/chat/index.vue @@ -469,7 +469,7 @@ onUnmounted(() => { v-if="isMobile" :using-context="usingContext" @export="handleExport" - @toggle-using-context="toggleUsingContext" + @handle-clear="handleClear" />
@@ -513,7 +513,7 @@ onUnmounted(() => {