Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 Dialog 对话框默认影响body问题 #29

Closed
cshaptx4869 opened this issue Feb 27, 2024 · 3 comments
Closed

使用 Dialog 对话框默认影响body问题 #29

cshaptx4869 opened this issue Feb 27, 2024 · 3 comments

Comments

@cshaptx4869
Copy link
Contributor

打开 Dialog 默认会给 body 元素添加样式 width: calc(100% - 15px); 导致页面有偏移
Snipaste_2024-02-27_16-04-39

@cshaptx4869
Copy link
Contributor Author

详见 Element-Plus Issue 10481

@cshaptx4869
Copy link
Contributor Author

虽然给 index.html 添加 #app {overflow-y: auto;} 样式后可以解决 dialog/drawer 打开时页面抖动问题,但在开启 Header 固定时,又会出现遮挡部分滚动条的问题...
Snipaste_2024-03-01_00-01-44

@cshaptx4869
Copy link
Contributor Author

已修复 见 PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant