瀏覽代碼

enhance: set the max-height of ChatGPT UI

0xJacky 2 年之前
父節點
當前提交
f36e582976
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      frontend/src/components/ChatGPT/ChatGPT.vue

+ 5 - 0
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 {