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 for settings-modal displacement #157

Merged

Conversation

devishraq
Copy link
Contributor

Summary

This PR hides the scrollbar in the settings modal while preserving the scroll functionality. This change ensures that the modal remains in place when switching between tabs with different content heights.

Changes

  • Added .no-scrollbar class to hide the scrollbar.
  • Changed tailwindcss class from overflow-y-auto to overflow-y-scroll in the settings modal.
  • Updated SettingsModal.tsx and globals.css.

Testing

  • Verified that the modal does not displace when switching between tabs.
  • Ensured that scrolling functionality is maintained within the modal.
  • The fix also supported by all major browsers

Related Issues

Fixes issue #156

…nality

- Added .no-scrollbar class to hide the scrollbar
- Changed tailwindcss class from overflow-y-auto to overflow-y-scroll in settings modal
- Updated settings modals.tsx and globals.css

This ensures the modal remains in place when switching between tabs with different content heights.
Copy link

vercel bot commented Aug 7, 2024

@devishraq is attempting to deploy a commit to the CP Initiative Team on Vercel.

A member of the Team first needs to authorize it.

@devishraq devishraq changed the title Fix for #156 issue fix for settings-modal displacement Aug 8, 2024
@devishraq
Copy link
Contributor Author

@thecodingwizard ! Can you have a look?

Copy link

vercel bot commented Aug 23, 2024

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

Name Status Preview Comments Updated (UTC)
ide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2024 0:09am

Copy link
Member

@thecodingwizard thecodingwizard left a comment

Choose a reason for hiding this comment

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

lgtm! thank you for the contribution, and apologies for the delay!

@thecodingwizard thecodingwizard merged commit 0213c66 into cpinitiative:master Aug 23, 2024
3 checks passed
@thecodingwizard thecodingwizard linked an issue Aug 23, 2024 that may be closed by this pull request
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.

Settings Modal is Displacing when going through tabs
2 participants