fix: 修复取消固定头部问题 (#75)

* fix: 修复取消固定头部问题

* perf: simplify the layout code
This commit is contained in:
啝裳
2021-10-27 14:40:31 +08:00
committed by GitHub
parent 5a78685ac9
commit 1fa5793ec4
4 changed files with 166 additions and 70 deletions

View File

@@ -16,11 +16,33 @@
$menuText: #7a80b4;
$menuActiveText: #7a80b4;
@media screen and (min-width: 150px) and (max-width: 420px) {
.app-main-nofixed-header {
overflow-y: hidden;
}
}
@media screen and (min-width: 420px) {
.app-main-nofixed-header {
overflow: hidden;
}
}
.main-container {
height: 100vh;
min-height: 100%;
transition: margin-left 0.28s;
margin-left: $sideBarWidth;
position: relative;
@media screen and (min-width: 150px) and (max-width: 420px) {
.el-scrollbar__view {
overflow-y: hidden;
}
}
@media screen and (min-width: 420px) {
.el-scrollbar__view {
overflow: hidden;
}
}
}
.fixed-header {