Adapt for Mobile Screen (#14)
This commit is contained in:
1 parent
82bb30cf94
commit
6de5435746
15 files changed
+355
-152
No files matched your search
@@ -125,9 +125,15 @@ export default defineComponent({
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.introduction {
|
||||
position: relative;
|
||||
top: initial;
|
||||
left: initial;
|
||||
transform: initial;
|
||||
width: 90%;
|
||||
left: 5%;
|
||||
transform: translateY(-50%);
|
||||
margin: auto;
|
||||
.introduction-items {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="sidebar">
|
||||
<div class="panel">
|
||||
<el-skeleton v-if="loading && conversations === undefined" />
|
||||
<div v-else class="conversations">
|
||||
<div class="conversation" @click="onNewConversation">
|
||||
@@ -130,7 +130,7 @@ export default defineComponent({
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.sidebar {
|
||||
.panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="sidebar">
|
||||
<div class="navigator">
|
||||
<div class="top">
|
||||
<div v-for="(link, linkIndex) in links" :key="linkIndex" class="link">
|
||||
<el-tooltip effect="dark" :content="link.displayName" placement="right">
|
||||
@@ -97,7 +97,7 @@ export default defineComponent({
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.sidebar {
|
||||
.navigator {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
@@ -108,4 +108,12 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.channel-selector {
|
||||
.button {
|
||||
padding: 20px 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -14,13 +14,9 @@
|
||||
</el-skeleton>
|
||||
</el-card>
|
||||
</div>
|
||||
<el-row>
|
||||
<el-col :span="10" :offset="14">
|
||||
<div class="pagination">
|
||||
<pagination :current-page="page" :page-size="limit" :total="total" @change="onPageChange" />
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<div class="pagination">
|
||||
<pagination :current-page="page" :page-size="limit" :total="total" @change="onPageChange" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
@@ -35,8 +31,6 @@ export default defineComponent({
|
||||
components: {
|
||||
TaskPreview,
|
||||
Pagination,
|
||||
ElRow,
|
||||
ElCol,
|
||||
ElSkeleton,
|
||||
ElSkeletonItem,
|
||||
ElCard
|
||||
@@ -156,5 +150,7 @@ export default defineComponent({
|
||||
.pagination {
|
||||
height: 60px;
|
||||
padding-top: 10px;
|
||||
width: fit-content;
|
||||
margin: auto;
|
||||
}
|
||||
</style>
|
||||
@@ -139,7 +139,7 @@ export default defineComponent({
|
||||
required: true
|
||||
},
|
||||
applications: {
|
||||
type: Object as () => IApplication[],
|
||||
type: Object as () => IApplication[] | undefined,
|
||||
required: true
|
||||
},
|
||||
full: {
|
||||
|
||||
Reference in new issue
Block a user