Skip to content

Commit

Permalink
fix: 🐛 aside 在出现滚动条之后,错位
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingyun2010 committed Oct 15, 2020
1 parent 71f47c7 commit 54f1446
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions components/aside/style/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ $asidePrefix: $prefix + '-aside';
top: 0;
left: 0;
bottom: 0;
overflow: auto;
overflow-x: hidden;
background-color: $asideBg;
z-index: 1;
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;

&-body {
flex: 1;
padding-bottom: $asideFooterHeight;
overflow-y: auto;
overflow-x: hidden;
}

&-logo {
Expand Down Expand Up @@ -53,18 +54,14 @@ $asidePrefix: $prefix + '-aside';

&-footer {
width: 100%;
max-width: 256px;
border-top: 1px solid #f0f0f0;
padding: 10px;
position: fixed;
bottom: 0;
left: 0;
background-color: #fff;
z-index: 9;

&-body {
display: flex;
align-items: center;
margin: 0 auto;
}

&-img {
Expand Down Expand Up @@ -154,6 +151,8 @@ $asidePrefix: $prefix + '-aside';
align-items: center;
justify-content: center;
cursor: pointer;
margin: 0 auto;

.#{$asidePrefix}-footer-icon {
color: #1bc5bd;
display: block;
Expand Down

0 comments on commit 54f1446

Please sign in to comment.