remove scrollbar by correcting height calculation in RemoveBackground
This commit is contained in:
parent
d38fac4451
commit
3e24fbb9ba
@ -545,11 +545,12 @@ const removeHistoryItem = (index: number) => {
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.remove-background-page {
|
.remove-background-page {
|
||||||
width: 100%;
|
position: relative;
|
||||||
height: 100vh;
|
width: calc(100% + 40px); /* 抵消父容器左右 padding */
|
||||||
|
height: calc(100vh - 64px - 40px); /* 100vh - header高度(64px) - content-wrapper上下padding(40px) */
|
||||||
|
margin: -20px; /* 抵消父容器 content-wrapper 的 padding */
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: #f8fafc;
|
background: #f8fafc;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user