Skip to content

bug: Two-factor dialog misaligned on tablet/iPad screens #6839

@deepakbhagatiitr

Description

@deepakbhagatiitr

Describe the Bug

Two-factor authentication modal renders shifted upward on tablet/iPad layouts (screenshot attached).

Steps to Reproduce

Open the Rocket.Chat mobile app on an iPad or Android tablet (or run tablet simulator).

Log in with any account that has two-factor authentication via email enabled.

Observe the position of the “Two-factor authentication” modal.

Expected Behavior

The modal should stay vertically centered within the viewport regardless of device class, matching the phone layout.

Actual Behavior

On tablets the modal appears offset toward the top of the screen instead of centered; only phone layout centers it properly.

Rocket.Chat Server Version

NA

Rocket.Chat App Version

NA

Device Name

iPad simulator (also observed on Android tablet sim).

OS Version

iPadOS 18.1 (simulator); Android 15 tablet sim.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions