interface icon indicating copy to clipboard operation
interface copied to clipboard

Fix: White box is showing up in the right up corner on mobile

Open Jdecristi opened this issue 2 years ago • 10 comments

General Changes

Developer Notes

When a drawer or dialog opens, MUI adds 22px padding to the body by default. This can be fixed by simply disabling scroll lock on the drawer.

When disabling scroll lock, the body will scroll behind the drawer, this is fixed by adding "overflow: hidden" to the body when, MobileMenu is open.

Screen shots

Before
Screen Shot 2023-04-14 at 3 22 00 PM
After
Screen Shot 2023-04-14 at 3 22 52 PM

Author Checklist

Please ensure you, the author, have gone through this checklist to ensure there is an efficient workflow for the reviewers.

  • [x] The base branch is set to main
  • [x] The title is using Conventional Commit formatting
  • [x] The Github issue has been linked to the PR in the Development section
  • [x] The General Changes section has been filled out
  • [x] Developer Notes have been added (optional)

If the PR is ready for review:

  • [x] The PR is in Open state and not in Draft mode
  • [ ] The Ready for Dev Review label has been added

Reviewer Checklist

Please ensure you, as the reviewer(s), have gone through this checklist to ensure that the code changes are ready to ship safely and to help mitigate any downstream issues that may occur.

  • [ ] End-to-end tests are passing without any errors
  • [ ] Code style generally follows existing patterns
  • [ ] Code changes do not significantly increase the application bundle size
  • [ ] If there are new 3rd-party packages, they do not introduce potential security threats
  • [ ] If there are new environment variables being added, they have been added to the .env.example file as well as the pertinant .github/actions/* files
  • [ ] There are no CI changes, or they have been approved by the DevOps and Engineering team(s)
  • [ ] Code changes have been quality checked in the ephemeral URL
  • [ ] QA verification has been completed
  • [ ] There are two or more approvals from the core team
  • [ ] Squash and merge has been checked

Jdecristi avatar Apr 14 '23 19:04 Jdecristi

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

height[bot] avatar Apr 14 '23 19:04 height[bot]

❌ CI run has failed! Please see logs at https://github.com/aave/interface/actions/runs/4796900749'

github-actions[bot] avatar Apr 25 '23 11:04 github-actions[bot]

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 503.66 KB (🟢 -4.77 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Eleven Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 41.42 KB (🟢 -9 B) 545.08 KB
/404 6.36 KB (🟢 -1 B) 510.02 KB
/500 6.8 KB (🟢 -1 B) 510.45 KB
/governance 76.51 KB (🟢 -2.94 KB) 580.16 KB
/governance/ipfs-preview 108.24 KB (-6 B) 611.9 KB
/governance/proposal 108.4 KB (-5 B) 612.05 KB
/governance/proposal/[proposalId] 63.09 KB (-5 B) 566.75 KB
/markets 16.66 KB (🟢 -296 B) 520.32 KB
/reserve-overview 65.43 KB (🟢 -731 B) 569.08 KB
/staking 20.72 KB (-1 B) 524.38 KB
/v3-migration 28.78 KB (-2 B) 532.43 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

github-actions[bot] avatar Apr 25 '23 11:04 github-actions[bot]

  • Ipfs hash: bafybeihe2rb33qqyh7excuwk53cxfr7xttknwiuzk5fdcdxu5vewpjlgwa
  • Ipfs preview link: https://bafybeihe2rb33qqyh7excuwk53cxfr7xttknwiuzk5fdcdxu5vewpjlgwa.ipfs.cf-ipfs.com/

github-actions[bot] avatar Apr 25 '23 11:04 github-actions[bot]

Hello @Jdecristi i check this fix and it broke mobile header on scrolling

mobile-scroll

MareskoY avatar Apr 25 '23 12:04 MareskoY

@MareskoY I managed to fix the bug you brought up

Jdecristi avatar Apr 25 '23 19:04 Jdecristi

@MareskoY Could you take another look at this

defispartan avatar May 17 '23 03:05 defispartan

Hello @Jdecristi, I wanted to thank you for pushing the update. It's now looking great and has passed the QC test. Your efforts are much appreciated.

MareskoY avatar May 22 '23 11:05 MareskoY

❌ CI run has failed! Please see logs at https://github.com/aave/interface/actions/runs/5045175718'

github-actions[bot] avatar May 22 '23 11:05 github-actions[bot]

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 508.47 KB (🟢 -10.72 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Nine Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 41.46 KB (🟢 -491 B) 549.93 KB
/faucet 22.31 KB (-1 B) 530.78 KB
/governance 79.45 KB (🟢 -3.28 KB) 587.91 KB
/governance/ipfs-preview 108.25 KB (🟢 -3.28 KB) 616.71 KB
/governance/proposal 108.4 KB (🟢 -3.28 KB) 616.87 KB
/governance/proposal/[proposalId] 63.1 KB (🟢 -3.29 KB) 571.57 KB
/markets 16.95 KB (🟢 -240 B) 525.42 KB
/reserve-overview 66.14 KB (🟢 -70 B) 574.61 KB
/v3-migration 28.78 KB (🟡 +1 B) 537.25 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

github-actions[bot] avatar May 22 '23 11:05 github-actions[bot]