-
Notifications
You must be signed in to change notification settings - Fork 152
Fix/modal open 3dot open and some design #1665
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/modal open 3dot open and some design #1665
Conversation
WalkthroughA new margin utility class was added to the admin CSS. The modal open logic in the Vue component was enhanced for smoother display and animation, including body scroll locking. The modal template's close button was repositioned for improved layout, with updated offset classes. Additionally, a CSS overflow class was removed from a main container div. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Suggested labels
Possibly related PRs
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
includes/Admin/template-parts/modal-v4.2.php (1)
89-89: Consider reducing the z-index value.The z-index value
wpuf-z-[1000000]is extremely high. While it ensures the close button is always visible, such high values can cause stacking context issues and make future z-index management difficult.Consider using a more reasonable z-index value:
- class="wpuf-absolute wpuf-right-8 wpuf-top-4 wpuf-text-gray-400 hover:wpuf-text-gray-600 focus:wpuf-outline-none wpuf-close-btn wpuf-border wpuf-border-gray-200 wpuf-rounded-full wpuf-p-2 hover:wpuf-border-gray-300 wpuf-bg-white wpuf-z-[1000000]"> + class="wpuf-absolute wpuf-right-8 wpuf-top-4 wpuf-text-gray-400 hover:wpuf-text-gray-600 focus:wpuf-outline-none wpuf-close-btn wpuf-border wpuf-border-gray-200 wpuf-rounded-full wpuf-p-2 hover:wpuf-border-gray-300 wpuf-bg-white wpuf-z-50">
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
assets/css/admin/form-builder.css(1 hunks)assets/js/components/FormsList.vue(2 hunks)includes/Admin/template-parts/modal-v4.2.php(1 hunks)
🔇 Additional comments (5)
assets/css/admin/form-builder.css (1)
2858-2860: Utility class.wpuf-mt-20is consistent and safe to mergeThe new helper aligns with the established
.wpuf-mt-*scale (5 rem matches Tailwind’smt-20) and introduces no selector clashes.includes/Admin/template-parts/modal-v4.2.php (1)
88-94: Close button repositioned for better accessibility.The close button has been moved from the inner container to the top-level modal container with improved positioning (
wpuf-right-8vswpuf-right-4). This ensures better visibility and interaction.assets/js/components/FormsList.vue (3)
327-341: Enhanced modal opening logic for better UX.The modal opening logic has been significantly improved with:
- Proper animation sequencing using
offsetHeightto force reflow- Body scroll locking with
overflow: hidden- Smooth CSS transitions with
wpuf-modal-showclass- Main content hiding during modal display
This provides a much better user experience with smooth animations and prevents background scrolling.
333-333: Force reflow technique is correctly implemented.The line
$modal[0].offsetHeight;correctly forces a browser reflow before adding the animation class, ensuring the CSS transition triggers properly. This is a well-known technique for ensuring animations work correctly.
637-637: Pagination spacing increased for better visual hierarchy.The top margin has been increased from
wpuf-mt-8towpuf-mt-20(from 2rem to 5rem), providing better visual separation between the table and pagination controls.
|
Three dot menu issue not solved! @arifulhoque7 vai |
now it is solved please check @Rubaiyat-E-Mohammad vai |
|
Issue not solved @arifulhoque7 vai CleanShot.2025-08-04.at.09.25.00.mp4 |
Close issue , issue
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Style