From f36e582976113fa7dd67d3ff636a445d938eca30 Mon Sep 17 00:00:00 2001 From: 0xJacky Date: Mon, 10 Apr 2023 13:01:02 +0800 Subject: [PATCH] enhance: set the max-height of ChatGPT UI --- frontend/src/components/ChatGPT/ChatGPT.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/components/ChatGPT/ChatGPT.vue b/frontend/src/components/ChatGPT/ChatGPT.vue index 2d17290..d28b46a 100644 --- a/frontend/src/components/ChatGPT/ChatGPT.vue +++ b/frontend/src/components/ChatGPT/ChatGPT.vue @@ -260,6 +260,11 @@ const show = computed(() => messages?.value?.length > 1) .chatgpt { position: sticky; top: 78px; + + :deep(.ant-card-body) { + max-height: 100vh; + overflow-y: scroll; + } } .chat-start {