From 77d6f0dd33969c70de4bb91a99ae7bbce545fe34 Mon Sep 17 00:00:00 2001 From: AceDataCloud Date: Sat, 15 Jun 2024 12:48:17 +0800 Subject: [PATCH] Fix chat mobile adaptation (#48) --- ...-nexior-f13a1f2e-bd4b-46ae-942f-3815a3b7fdd6.json | 7 +++++++ src/components/application/Status.vue | 5 +++++ src/components/chat/InputBox.vue | 3 ++- src/components/chat/Introduction.vue | 5 +++-- src/components/chat/IntroductionItem.vue | 3 ++- src/components/chat/Message.vue | 2 +- src/components/chat/SidePanel.vue | 4 ++++ src/components/midjourney/preset/ModelSelector.vue | 2 +- src/layouts/Chat.vue | 2 +- src/pages/chat/Conversation.vue | 12 ++++++++++-- src/store/common/state.ts | 3 +-- 11 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 change/@acedatacloud-nexior-f13a1f2e-bd4b-46ae-942f-3815a3b7fdd6.json diff --git a/change/@acedatacloud-nexior-f13a1f2e-bd4b-46ae-942f-3815a3b7fdd6.json b/change/@acedatacloud-nexior-f13a1f2e-bd4b-46ae-942f-3815a3b7fdd6.json new file mode 100644 index 00000000..f86add15 --- /dev/null +++ b/change/@acedatacloud-nexior-f13a1f2e-bd4b-46ae-942f-3815a3b7fdd6.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "make adaptation for mobile", + "packageName": "@acedatacloud/nexior", + "email": "germey@acedata.cloud", + "dependentChangeType": "patch" +} diff --git a/src/components/application/Status.vue b/src/components/application/Status.vue index e3d9ef39..c6acfd8a 100644 --- a/src/components/application/Status.vue +++ b/src/components/application/Status.vue @@ -180,6 +180,11 @@ export default defineComponent({ .actions { margin: 0 5px; display: inline-block; + @media (max-width: 767px) { + display: block; + margin: 5px auto 0 auto; + width: fit-content; + } .el-button { border-radius: 20px; } diff --git a/src/components/chat/InputBox.vue b/src/components/chat/InputBox.vue index a7a8fefa..8b5776bf 100644 --- a/src/components/chat/InputBox.vue +++ b/src/components/chat/InputBox.vue @@ -197,7 +197,8 @@ textarea.input:focus { diff --git a/src/store/common/state.ts b/src/store/common/state.ts index d06b2677..5a300a04 100644 --- a/src/store/common/state.ts +++ b/src/store/common/state.ts @@ -13,8 +13,7 @@ export default (): IRootState => { expiration: undefined }, setting: { - // if PC, set default to true, else false - navigationCollapsed: window.innerWidth < 768 + navigationCollapsed: true }, chatdoc: chatdocState(), chat: chatState(),