Update console style for mobile (#268)
This commit is contained in:
1 parent
4b032b2934
commit
8298f5369a
6 files changed
+73
-43
No files matched your search
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "patch",
|
||||
"comment": "fix console style",
|
||||
"packageName": "@acedatacloud/nexior",
|
||||
"email": "cqc@cuiqingcai.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
||||
@@ -10,8 +10,8 @@
|
||||
<div class="flex-1 p-[10px]">
|
||||
<el-skeleton animated>
|
||||
<template #template>
|
||||
<el-skeleton-item variant="p" class="w-[200px] h-[20px] mb-[15px]" />
|
||||
<el-skeleton-item variant="p" class="w-full h-[200px] max-w-[300px]" />
|
||||
<el-skeleton-item variant="p" class="w-[200px] h-[20px] mb-[15px] block" />
|
||||
<el-skeleton-item variant="p" class="w-full h-[200px] max-w-[300px] block" />
|
||||
</template>
|
||||
</el-skeleton>
|
||||
</div>
|
||||
|
||||
@@ -120,6 +120,9 @@ $padding-left: 10px;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
gap: 5px;
|
||||
@media screen and (max-width: 767px) {
|
||||
width: 100%;
|
||||
}
|
||||
.link {
|
||||
$height: 40px;
|
||||
height: $height;
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="w-full h-full bg-gradient-to-b from-gray-200 to-gray-300"></div>
|
||||
<div v-else class="w-full h-full"></div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
@@ -1,6 +1,22 @@
|
||||
<template>
|
||||
<div v-if="tasks?.items === undefined" class="tasks">
|
||||
<bot-placeholder />
|
||||
<div v-for="_ in 3" :key="_" class="flex">
|
||||
<div class="left w-[70px] p-[10px] flex items-center">
|
||||
<el-skeleton animated>
|
||||
<template #template>
|
||||
<el-skeleton-item variant="image" class="avatar w-[50px] h-[50px]" />
|
||||
</template>
|
||||
</el-skeleton>
|
||||
</div>
|
||||
<div class="main w-[calc(100%-70px)] flex-1 p-[10px]">
|
||||
<el-skeleton animated>
|
||||
<template #template>
|
||||
<el-skeleton-item variant="p" class="w-[200px] h-[15px] mb-[5px] mt-[10px]" />
|
||||
<el-skeleton-item variant="text" />
|
||||
</template>
|
||||
</el-skeleton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-else-if="tasks?.items?.length && tasks?.items?.length > 0"
|
||||
@@ -22,12 +38,13 @@ import { defineComponent } from 'vue';
|
||||
import TaskPreview from './task/Preview.vue';
|
||||
import Player from '@/components/suno/player/Player.vue';
|
||||
import NoTasks from '@/components/common/NoTasks.vue';
|
||||
import BotPlaceholder from '@/components/common/BotPlaceholder.vue';
|
||||
import { ElSkeleton, ElSkeletonItem } from 'element-plus';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'RecentPanel',
|
||||
components: {
|
||||
BotPlaceholder,
|
||||
ElSkeletonItem,
|
||||
ElSkeleton,
|
||||
TaskPreview,
|
||||
Player,
|
||||
NoTasks
|
||||
|
||||
+40
-37
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="wrapper console">
|
||||
<div class="console">
|
||||
<div class="main">
|
||||
<side-panel class="side" />
|
||||
<router-view class="panel" />
|
||||
@@ -33,40 +33,41 @@ export default defineComponent({
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.wrapper {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
|
||||
.navigator {
|
||||
@media screen and (min-width: 768px) {
|
||||
.console {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
width: 60px;
|
||||
border-right: 1px solid var(--el-border-color);
|
||||
}
|
||||
|
||||
.main {
|
||||
height: 100%;
|
||||
width: calc(100% - 60px);
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
.side {
|
||||
width: 200px;
|
||||
flex-direction: row-reverse;
|
||||
|
||||
.navigator {
|
||||
height: 100%;
|
||||
width: 60px;
|
||||
border-right: 1px solid var(--el-border-color);
|
||||
}
|
||||
.panel {
|
||||
width: calc(100% - 200px);
|
||||
|
||||
.main {
|
||||
height: 100%;
|
||||
padding: 30px;
|
||||
background-color: var(--el-bg-color-page);
|
||||
overflow: hidden;
|
||||
width: calc(100% - 60px);
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
.side {
|
||||
width: 200px;
|
||||
height: 100%;
|
||||
}
|
||||
.panel {
|
||||
width: calc(100% - 200px);
|
||||
height: 100%;
|
||||
padding: 30px;
|
||||
background-color: var(--el-bg-color-page);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 767px) {
|
||||
.wrapper {
|
||||
.console {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
@@ -74,17 +75,26 @@ export default defineComponent({
|
||||
.navigator {
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
z-index: 10000;
|
||||
}
|
||||
.main {
|
||||
height: calc(100% - 60px);
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
.side {
|
||||
display: none;
|
||||
}
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.panel {
|
||||
width: 100%;
|
||||
// height: 100%;
|
||||
padding: 30px;
|
||||
background-color: var(--el-bg-color-page);
|
||||
padding-bottom: 80px;
|
||||
}
|
||||
.side {
|
||||
width: 100%;
|
||||
height: fit-content;
|
||||
padding: 20px 0 20px 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -92,7 +102,7 @@ export default defineComponent({
|
||||
</style>
|
||||
|
||||
<style lang="scss">
|
||||
.wrapper.console {
|
||||
.console {
|
||||
.panel {
|
||||
.title {
|
||||
font-size: 26px;
|
||||
@@ -112,12 +122,5 @@ export default defineComponent({
|
||||
margin: auto;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
// @media (max-width: 767px) {
|
||||
// .panel {
|
||||
// width: 100%;
|
||||
// height: 100%;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user