chatgpt ui

This commit is contained in:
AceDataCloud committed 2023-04-06 20:13:16 +08:00
1 parent 523ab178a4
commit ed43ab5afd
24 files changed
+495 -34

No files matched your search

+72
View File
@@ -0,0 +1,72 @@
<template>
<div class="container">
<el-main class="main"> <router-view /> </el-main>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { ElMain, ElAside } from 'element-plus';
export default defineComponent({
name: 'LayoutConversation',
components: {
ElMain
}
});
</script>
<style lang="scss" scoped>
.container {
display: flex;
height: 100vh;
width: 100%;
max-width: initial;
}
.header {
padding: 0;
}
$width: 300px;
.aside {
width: $width;
height: 100%;
background-color: white;
padding: 15px;
padding-top: 50px;
}
.header {
display: none;
}
.main {
width: calc(100% - $width);
background-color: #f3f5f6;
height: 100%;
}
@media (max-width: 800px) {
.container {
display: block;
}
.aside {
display: none;
}
.header {
display: block;
background: white;
padding: 15px;
padding-top: 50px;
height: fit-content;
overflow: hidden;
.logo {
width: 100%;
}
}
.main {
width: 100%;
}
}
</style>