Fix the bug when modal show back to top

This commit is contained in:
Will Miao
2025-02-18 07:27:10 +08:00
parent 6181a1c714
commit bbc5aea08c
2 changed files with 10 additions and 2 deletions

View File

@@ -14,8 +14,6 @@
/* 当模态窗口打开时禁止body滚动 */
body.modal-open {
overflow: hidden;
height: 100vh;
position: fixed;
width: 100%;
padding-right: var(--scrollbar-width, 0px); /* 补偿滚动条消失导致的页面偏移 */