fix(ui): center modals in viewport and lock background scroll

This commit is contained in:
LTbinglingfeng
2026-01-02 01:15:04 +08:00
parent 7cab1e8782
commit 4cfb77dd44
2 changed files with 45 additions and 1 deletions

View File

@@ -15,6 +15,15 @@ body {
transition: background-color $transition-normal, color $transition-normal;
}
html.modal-open,
body.modal-open {
overflow: hidden;
}
body.modal-open .content {
overflow: hidden;
}
// 滚动条样式
::-webkit-scrollbar {
width: 8px;