From 275d470871079f6522dd2d12a73596abb1cf4302 Mon Sep 17 00:00:00 2001 From: godo Date: Fri, 29 Nov 2024 17:54:51 +0800 Subject: [PATCH] change chat css --- frontend/src/assets/chat.scss | 13 +++++++++++++ frontend/src/components/localchat/AiChatMain.vue | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/frontend/src/assets/chat.scss b/frontend/src/assets/chat.scss index bb09168..f6bb065 100644 --- a/frontend/src/assets/chat.scss +++ b/frontend/src/assets/chat.scss @@ -91,4 +91,17 @@ .top-menu-button:hover { background-color: #f0f8ff; /* 悬停时的背景颜色 */ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 悬停时的阴影效果 */ + } + .selected-image { + position: relative; + &::after { + content: ''; + position: absolute; + top: -5px; + right: -5px; + width: 10px; + height: 10px; + background-color: red; + border-radius: 50%; + } } \ No newline at end of file diff --git a/frontend/src/components/localchat/AiChatMain.vue b/frontend/src/components/localchat/AiChatMain.vue index b453955..31218fd 100644 --- a/frontend/src/components/localchat/AiChatMain.vue +++ b/frontend/src/components/localchat/AiChatMain.vue @@ -93,7 +93,7 @@ const createCompletion = async () => { model: img2txtModel.model, //"prompt":userMessage.value, stream: false, - //options: chatConfig, + options: chatConfig, messages: [ { role: "user", @@ -210,7 +210,7 @@ const uploadImage = async (event: any) => {
- +