Skip to content

Commit

Permalink
feat: optimize layout
Browse files Browse the repository at this point in the history
  • Loading branch information
lanthora committed Jul 23, 2024
1 parent bcd21b6 commit b943ad1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
17 changes: 3 additions & 14 deletions frontend/src/components/AdminView.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<template>
<a-layout>
<a-layout-sider
breakpoint="lg"
collapsed-width="0"
@collapse="onCollapse"
@breakpoint="onBreakpoint"
:style="{ height: '98vh' }"
>
<a-layout style="min-height: 98vh">
<a-layout-sider breakpoint="lg" collapsed-width="0">
<div class="logo">
<a-avatar src="/favicon.ico" />
</div>
Expand All @@ -31,12 +25,7 @@

<script setup>
import { ref } from 'vue'
const onCollapse = (collapsed, type) => {
console.log(collapsed, type)
}
const onBreakpoint = (broken) => {
console.log(broken)
}
const selectedKeys = ref(['user'])
const showUserManagement = () => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/SettingView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<a-page-header
style="border: 1px solid rgb(235, 237, 240)"
title="Setting"
sub-title="configs that can only be modified by admin"
sub-title="system configuration"
/>
</a-layout-header>
<a-layout-content :style="{ margin: '24px 16px 0' }">
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/UserView.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<a-layout>
<a-layout-sider breakpoint="lg" collapsed-width="0" :style="{ height: '98vh' }">
<a-layout style="min-height: 98vh">
<a-layout-sider breakpoint="lg" collapsed-width="0">
<div class="logo">
<a-avatar src="/favicon.ico" />
</div>
Expand Down

0 comments on commit b943ad1

Please sign in to comment.