Fix chat mobile adaptation (#48)
This commit is contained in:
1 parent
ecd4bf97d6
commit
77d6f0dd33
11 files changed
+37
-11
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"type": "patch",
|
||||||
|
"comment": "make adaptation for mobile",
|
||||||
|
"packageName": "@acedatacloud/nexior",
|
||||||
|
"email": "germey@acedata.cloud",
|
||||||
|
"dependentChangeType": "patch"
|
||||||
|
}
|
||||||
@@ -180,6 +180,11 @@ export default defineComponent({
|
|||||||
.actions {
|
.actions {
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
display: block;
|
||||||
|
margin: 5px auto 0 auto;
|
||||||
|
width: fit-content;
|
||||||
|
}
|
||||||
.el-button {
|
.el-button {
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -197,7 +197,8 @@ textarea.input:focus {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.input-box {
|
.input-box {
|
||||||
width: 800px;
|
width: 100%;
|
||||||
|
max-width: 800px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="introduction">
|
<div class="introduction">
|
||||||
<el-row class="items" justify="center" :gutter="15">
|
<el-row class="items" justify="center" :gutter="15">
|
||||||
<el-col v-for="(item, itemKey) in items" :key="itemKey" :md="6" :sm="12" :xs="24">
|
<el-col v-for="(item, itemKey) in items" :key="itemKey" :md="6" :sm="12" :xs="12">
|
||||||
<introduction-item
|
<introduction-item
|
||||||
:content="item.content"
|
:content="item.content"
|
||||||
:icon="item.icon"
|
:icon="item.icon"
|
||||||
@@ -67,7 +67,8 @@ export default defineComponent({
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
.items {
|
.items {
|
||||||
width: 800px;
|
max-width: 800px;
|
||||||
|
width: 100%;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,11 +49,12 @@ export default defineComponent({
|
|||||||
.item {
|
.item {
|
||||||
height: 100px;
|
height: 100px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
background-color: var(--el-color-white);
|
background-color: var(--el-color-color);
|
||||||
color: var(--el-text-color-primary);
|
color: var(--el-text-color-primary);
|
||||||
border: 1px solid var(--el-border-color-lighter);
|
border: 1px solid var(--el-border-color-lighter);
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
|
margin-bottom: 15px;
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: var(--el-bg-color-page);
|
background-color: var(--el-bg-color-page);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ import {
|
|||||||
ERROR_CODE_USED_UP,
|
ERROR_CODE_USED_UP,
|
||||||
ROLE_ASSISTANT
|
ROLE_ASSISTANT
|
||||||
} from '@/constants';
|
} from '@/constants';
|
||||||
// import message from '@/i18n/zh/common/message';
|
|
||||||
import { ROUTE_CONSOLE_APPLICATION_BUY } from '@/router';
|
import { ROUTE_CONSOLE_APPLICATION_BUY } from '@/router';
|
||||||
|
|
||||||
interface IData {
|
interface IData {
|
||||||
@@ -171,6 +170,7 @@ export default defineComponent({
|
|||||||
.content {
|
.content {
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
padding: 8px 15px;
|
padding: 8px 15px;
|
||||||
|
width: 100%;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
.image {
|
.image {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
|||||||
@@ -192,6 +192,10 @@ export default defineComponent({
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
border-right: 1px solid var(--el-border-color);
|
border-right: 1px solid var(--el-border-color);
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
border-right: none;
|
||||||
|
}
|
||||||
|
|
||||||
.conversations {
|
.conversations {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export default defineComponent({
|
|||||||
image: 'https://cdn.acedata.cloud/2023-10-06-174633.png'
|
image: 'https://cdn.acedata.cloud/2023-10-06-174633.png'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'niji',
|
value: 'niji 5',
|
||||||
label: this.$t('midjourney.model.niji'),
|
label: this.$t('midjourney.model.niji'),
|
||||||
image: 'https://cdn.acedata.cloud/2023-10-06-174008.png'
|
image: 'https://cdn.acedata.cloud/2023-10-06-174008.png'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<el-button round class="menu" @click="drawer = true">
|
<el-button round class="menu" @click="drawer = true">
|
||||||
<font-awesome-icon icon="fa-solid fa-bars" class="icon-menu" />
|
<font-awesome-icon icon="fa-solid fa-bars" class="icon-menu" />
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-drawer v-model="drawer" :with-header="false" size="340px" class="drawer">
|
<el-drawer v-model="drawer" :with-header="false" size="290px" class="drawer">
|
||||||
<side-panel />
|
<side-panel />
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<template #chat>
|
<template #chat>
|
||||||
<model-selector2 class="selector" />
|
<model-selector2 class="selector" />
|
||||||
<application-status
|
<application-status
|
||||||
|
class="status"
|
||||||
:initializing="initializing"
|
:initializing="initializing"
|
||||||
:application="application"
|
:application="application"
|
||||||
:need-apply="needApply"
|
:need-apply="needApply"
|
||||||
@@ -294,9 +295,10 @@ export default defineComponent({
|
|||||||
|
|
||||||
.dialogue {
|
.dialogue {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
width: 800px;
|
width: 100%;
|
||||||
|
max-width: 800px;
|
||||||
margin: 15px auto;
|
margin: 15px auto;
|
||||||
overflow-y: scroll;
|
overflow-y: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
.messages {
|
.messages {
|
||||||
padding-top: 30px;
|
padding-top: 30px;
|
||||||
@@ -308,4 +310,10 @@ export default defineComponent({
|
|||||||
.bottom {
|
.bottom {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.status {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -13,8 +13,7 @@ export default (): IRootState => {
|
|||||||
expiration: undefined
|
expiration: undefined
|
||||||
},
|
},
|
||||||
setting: {
|
setting: {
|
||||||
// if PC, set default to true, else false
|
navigationCollapsed: true
|
||||||
navigationCollapsed: window.innerWidth < 768
|
|
||||||
},
|
},
|
||||||
chatdoc: chatdocState(),
|
chatdoc: chatdocState(),
|
||||||
chat: chatState(),
|
chat: chatState(),
|
||||||
|
|||||||
Reference in new issue
Block a user