Browse Source

fix:界面优化

lkf
15881625488@163.com 2 months ago
parent
commit
58541bf819
2 changed files with 5 additions and 5 deletions
  1. +4
    -4
      src/layout/components/AppMain.vue
  2. +1
    -1
      src/settings.js

+ 4
- 4
src/layout/components/AppMain.vue View File

@ -47,7 +47,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.app-main { .app-main {
/* 50= navbar 50 */ /* 50= navbar 50 */
min-height: calc(100vh - 100px);
min-height: calc(100vh - 84px);
width: 100%; width: 100%;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
@ -57,7 +57,7 @@ export default {
.fixed-header + .app-main { .fixed-header + .app-main {
overflow-y: auto; overflow-y: auto;
scrollbar-gutter: auto; scrollbar-gutter: auto;
height: calc(100vh - 100px);
height: calc(100vh - 84px);
min-height: 0px; min-height: 0px;
} }
@ -72,12 +72,12 @@ export default {
.hasTagsView { .hasTagsView {
.app-main { .app-main {
/* 84 = navbar + tags-view = 50 + 34 */ /* 84 = navbar + tags-view = 50 + 34 */
min-height: calc(100vh - 100px);
min-height: calc(100vh - 84px);
} }
.fixed-header + .app-main { .fixed-header + .app-main {
margin-top: 84px; margin-top: 84px;
height: calc(100vh - 100px);
height: calc(100vh -84px);
min-height: 0px; min-height: 0px;
} }
} }

+ 1
- 1
src/settings.js View File

@ -32,7 +32,7 @@ module.exports = {
/** /**
* 是否固定头部 * 是否固定头部
*/ */
fixedHeader: false,
fixedHeader: true,
/** /**
* 是否显示logo * 是否显示logo

Loading…
Cancel
Save