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

feature: Add scroll detection for NodeDescription overflow and remove feature flag #3676

Merged
merged 8 commits into from
Sep 9, 2024

Conversation

anovazzi1
Copy link
Contributor

This pull request adds scroll detection for the NodeDescription component. It introduces a useRef hook to create a reference to the overflow div and a useState hook to track whether the div has scroll. The useEffect hook is used to check if the div has scroll after the component updates. If the div has scroll, the "nowheel" class is added to the component. This change improves the user experience by hiding the scroll bar when it is not needed.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Sep 3, 2024
@anovazzi1 anovazzi1 requested review from vasconceloscezar and removed request for vasconceloscezar September 3, 2024 22:10
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Sep 3, 2024
@anovazzi1 anovazzi1 changed the title Add scroll detection for NodeDescription overflow feature: Add scroll detection for NodeDescription overflow and remove feature flag Sep 3, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-3676.dmtpw4p5recq1.amplifyapp.com

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 6, 2024
- Update ENABLE_MVPS flag to false in feature-flags.ts
- Update testId from "extended-disclosure" to "bundle-extended-disclosure" in extraSidebarComponent/index.tsx
@anovazzi1 anovazzi1 merged commit ed3306f into main Sep 9, 2024
28 checks passed
@anovazzi1 anovazzi1 deleted the noteImprovements branch September 9, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants