tycoding 1 năm trước cách đây
mục cha
commit
38df9e7975

+ 4 - 0
langchat-ui-client/src/styles/global.less

@@ -67,3 +67,7 @@ body {
 	-ms-overflow-style: none;  /* IE 和 Edge */
 	scrollbar-width: none;  /* Firefox */
 }
+
+.n-avatar {
+	background: transparent !important;
+}

+ 0 - 1
langchat-ui-client/src/views/modules/chat/Header.vue

@@ -103,7 +103,6 @@
 
         <n-button size="small" tertiary type="info" @click="handleExport">
           <SvgIcon class="text-xl" icon="material-symbols:download" />
-          <span>{{ t('chat.exportImage') }}</span>
         </n-button>
       </div>
     </div>

+ 16 - 1
langchat-ui-client/src/views/modules/common/ModelProvider.vue

@@ -68,4 +68,19 @@
   />
 </template>
 
-<style lang="less" scoped></style>
+<style lang="less" scoped>
+  ::v-deep(
+      .n-base-selection .n-base-selection__border,
+      .n-base-selection .n-base-selection__state-border
+    ) {
+    border: none !important;
+  }
+  ::v-deep(.n-base-selection-label) {
+    font-weight: 600 !important;
+    gap: 6px !important;
+    display: flex !important;
+  }
+  ::v-deep(.n-base-selection-input) {
+    margin-right: 4px;
+  }
+</style>

+ 0 - 14
langchat-ui-client/src/views/modules/doc/components/Chat.vue

@@ -34,7 +34,6 @@
   const { isMobile } = useBasicLayout();
   const emits = defineEmits(['focus-active']);
   const messageRef = ref();
-  const model = ref('gpt-4o');
   const message = ref('');
   const isGoogleSearch = ref(false);
   const loading = ref(false);
@@ -172,19 +171,6 @@
         class="relative flex items-center justify-between min-w-0 overflow-hidden h-12 ml-2 mr-2 gap-2"
       >
         <ModelProvider />
-
-        <n-tag
-          v-model:checked="isGoogleSearch"
-          :bordered="false"
-          checkable
-          class="border"
-          type="primary"
-        >
-          <div class="text-sm flex items-center gap-1">
-            <SvgIcon icon="devicon:google" />
-            <div>Google Search</div>
-          </div>
-        </n-tag>
       </div>
     </header>
     <Message ref="messageRef" :messages="messages" />

+ 1 - 1
langchat-ui-client/src/views/modules/doc/components/Message.vue

@@ -95,7 +95,7 @@
   <div ref="textRef" class="middle w-full flex-1 py-3 z-0 overflow-y-auto">
     <div v-if="messages.length == 0" class="flex-1 flex h-full justify-center">
       <div class="w-1/2 flex flex-col justify-center text-xs items-center gap-2">
-        <n-icon color="#e4e4e7" size="70">
+        <n-icon color="#b4b4b9" size="70">
           <SvgIcon icon="et:chat" />
         </n-icon>
         <n-button secondary size="small" type="success">开始聊天</n-button>

+ 3 - 0
langchat-ui/src/styles/index.less

@@ -170,3 +170,6 @@ body {
   }
 }
 
+.n-avatar {
+  background: transparent !important;
+}