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">
|
||||
.remove-background-page {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
position: relative;
|
||||
width: calc(100% + 40px); /* 抵消父容器左右 padding */
|
||||
height: calc(100vh - 64px - 40px); /* 100vh - header高度(64px) - content-wrapper上下padding(40px) */
|
||||
margin: -20px; /* 抵消父容器 content-wrapper 的 padding */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user