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

fixed: Fixed an issue where the Form button was hidden #4448

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/layout/components/Page/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default {
<style lang="scss" scoped>
.page {
height: calc(100vh - 50px);
overflow-y: hidden;
//overflow-y: hidden;
overflow-x: hidden;

.el-alert {
Expand All @@ -127,8 +127,9 @@ export default {

.page-content {
height: calc(100% - 20px);
overflow-x: hidden;
overflow-y: auto !important;
//Todo)) 注释掉的原因:当页面动态高度变化时就会导致页面最下方的按钮被 hidden 掉
//overflow-x: hidden;
//overflow-y: auto !important;

::v-deep > div {
margin-bottom: 50px;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CSS code does not appear to have any issues or irregularities at this point. The main concerns would be regarding the visibility issue of the buttons on screen size changes. To fix this problem, consider using position: absolute inside .page-content, thus ensuring all elements are retained despite window size changes:

@media (max-width: 768px) {
  .el-alert, ::v-deep > div {
    position: initial; /* Reset button positions after media query */
  }
}

Please replace (min-width: 768px) with whatever breakpoint works best for your project.

If there's anything specific you'd like help optimizing further, feel free to let me know!

Expand Down