fix: restrict max width of 2FA dialog on tablet screens#6945
fix: restrict max width of 2FA dialog on tablet screens#6945prithvisingh01-tech wants to merge 1 commit intoRocketChat:developfrom
Conversation
|
|
WalkthroughA styling enhancement to the TwoFactor component that adds a maximum width constraint of 480px and center alignment to the content container, while maintaining its responsive 100% width property for flexible layout behavior. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
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. Comment |
Description
Fixed an issue where the Two-Factor Authentication dialog would stretch to 100% width on tablet screens, causing a misalignment.
Changes
maxWidth: 480to the content container instyles.ts.alignSelf: 'center'to ensure the dialog stays centered on larger viewports.How to test
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.