diff --git a/app/globals.css b/app/globals.css index 2dccfef..08edb01 100644 --- a/app/globals.css +++ b/app/globals.css @@ -250,4 +250,9 @@ body { .ant-switch.ant-switch-checked:hover { background: rgb(146 78 173) !important; -} \ No newline at end of file +} + +.language-dropdown li { + padding: unset !important; + margin: 0.25rem !important; +} \ No newline at end of file diff --git a/components/ChatInputBox/ChatInputBox.tsx b/components/ChatInputBox/ChatInputBox.tsx index e9464c0..c43a337 100644 --- a/components/ChatInputBox/ChatInputBox.tsx +++ b/components/ChatInputBox/ChatInputBox.tsx @@ -51,15 +51,15 @@ import { PcPhotoStoryModal } from "./PcPhotoStoryModal"; import { H5PhotoStoryDrawer } from "./H5PhotoStoryDrawer"; const LauguageOptions = [ - { value: "english", label: "English", isVip: false, code:'en' }, - { value: "chinese", label: "Chinese", isVip: false, code:'zh' }, - { value: "japanese", label: "Japanese", isVip: false, code:'ja' }, - { value: "spanish", label: "Spanish", isVip: false, code:'es' }, - { value: "portuguese", label: "Portuguese", isVip: false, code:'pt' }, - { value: "hindi", label: "Hindi", isVip: false, code:'hi' }, - { value: "korean", label: "Korean", isVip: false, code:'ko' }, - { value: "arabic", label: "Arabic", isVip: false, code:'ar' }, - { value: "russian", label: "Russian", isVip: false, code:'ru' }, + { value: "english", label: "English", isVip: false, code:'EN' }, + { value: "chinese", label: "Chinese", isVip: false, code:'ZH' }, + { value: "japanese", label: "Japanese", isVip: false, code:'JA' }, + { value: "spanish", label: "Spanish", isVip: false, code:'ES' }, + { value: "portuguese", label: "Portuguese", isVip: false, code:'PT' }, + { value: "hindi", label: "Hindi", isVip: false, code:'HI' }, + { value: "korean", label: "Korean", isVip: false, code:'KO' }, + { value: "arabic", label: "Arabic", isVip: false, code:'AR' }, + { value: "russian", label: "Russian", isVip: false, code:'RU' }, ] /**模板故事模式弹窗组件 */ @@ -343,11 +343,16 @@ export function ChatInputBox({ noData }: { noData: boolean }) { {/* 语言配置 */} ({ key: option.value, label: ( -
+
{option.label} {option.isVip && ( @@ -358,16 +363,14 @@ export function ChatInputBox({ noData }: { noData: boolean }) { onClick: ({ key }) => onConfigChange('language', key), }} trigger={["click"]} - placement="topRight" + placement="top" >