Fix chat mobile adaptation (#48)

This commit is contained in:
AceDataCloud committed 2024-06-15 04:48:17 +00:00
1 parent ecd4bf97d6
commit 77d6f0dd33
11 files changed
+37 -11

No files matched your search

+5
View File
@@ -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;
}
+2 -1
View File
@@ -197,7 +197,8 @@ textarea.input:focus {
<style lang="scss" scoped>
.input-box {
width: 800px;
width: 100%;
max-width: 800px;
margin: auto;
position: relative;
border-radius: 20px;
+3 -2
View File
@@ -1,7 +1,7 @@
<template>
<div class="introduction">
<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
:content="item.content"
:icon="item.icon"
@@ -67,7 +67,8 @@ export default defineComponent({
justify-content: center;
.items {
width: 800px;
max-width: 800px;
width: 100%;
margin: auto;
}
}
+2 -1
View File
@@ -49,11 +49,12 @@ export default defineComponent({
.item {
height: 100px;
font-size: 14px;
background-color: var(--el-color-white);
background-color: var(--el-color-color);
color: var(--el-text-color-primary);
border: 1px solid var(--el-border-color-lighter);
padding: 10px 20px;
border-radius: 20px;
margin-bottom: 15px;
&:hover {
background-color: var(--el-bg-color-page);
}
+1 -1
View File
@@ -46,7 +46,6 @@ import {
ERROR_CODE_USED_UP,
ROLE_ASSISTANT
} from '@/constants';
// import message from '@/i18n/zh/common/message';
import { ROUTE_CONSOLE_APPLICATION_BUY } from '@/router';
interface IData {
@@ -171,6 +170,7 @@ export default defineComponent({
.content {
border-radius: 20px;
padding: 8px 15px;
width: 100%;
max-width: 800px;
.image {
max-width: 100%;
+4
View File
@@ -192,6 +192,10 @@ export default defineComponent({
height: 100%;
border-right: 1px solid var(--el-border-color);
@media (max-width: 767px) {
border-right: none;
}
.conversations {
width: 100%;
display: flex;
@@ -35,7 +35,7 @@ export default defineComponent({
image: 'https://cdn.acedata.cloud/2023-10-06-174633.png'
},
{
value: 'niji',
value: 'niji 5',
label: this.$t('midjourney.model.niji'),
image: 'https://cdn.acedata.cloud/2023-10-06-174008.png'
}