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

fix(geogebra): aovid using conditional rendering for modal #3395

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

Entkenntnis
Copy link
Member

Caused by conditional rendering, which is not necessary because the modal is handling this by itself (see reactjs/react-modal#808 (comment))

@elbotho Probably justs an oversight and the conditional rendering was not intended or was for fixing some other bug?

@Entkenntnis Entkenntnis requested a review from elbotho February 15, 2024 09:58
@Entkenntnis Entkenntnis linked an issue Feb 15, 2024 that may be closed by this pull request
Copy link

vercel bot commented Feb 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
frontend ✅ Ready (Inspect) Visit Preview Feb 15, 2024 11:27am

Copy link
Contributor

github-actions bot commented Feb 15, 2024

📦 Next.js Bundle Analysis for @serlo/frontend

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

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 104.13 KB (🟡 +1 B)
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!

Seven Pages Changed Size

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

Page Size (compressed) First Load
/___editor_preview 510.38 KB (-27 B) 614.51 KB
/entity/create/[type]/[taxonomyId] 512.21 KB (-27 B) 616.34 KB
/entity/repository/add-revision/[...id] 511.28 KB (-27 B) 615.42 KB
/page/create 511.31 KB (-27 B) 615.45 KB
/taxonomy/term/create/[parent_id]/[id] 510.91 KB (-27 B) 615.05 KB
/taxonomy/term/update/[id] 510.79 KB (-27 B) 614.92 KB
/user/settings 509.3 KB (-27 B) 613.44 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.

@elbotho
Copy link
Member

elbotho commented Feb 15, 2024

@Entkenntnis pretty sure it's fine without the conditional. In my commit I adapted all other conditionally rendered modals I could find.

@Entkenntnis Entkenntnis merged commit 38fc900 into staging Feb 15, 2024
9 checks passed
@Entkenntnis Entkenntnis deleted the 3356-cannot-scroll-page-after-closing-modal branch February 15, 2024 11:39
@elbotho elbotho mentioned this pull request Feb 15, 2024
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

Successfully merging this pull request may close these issues.

Cannot scroll page after closing modal
2 participants