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

[Navbar] The dropdown menu under the navbar gets off-viewport on mobile #1877

Closed
jcornil opened this issue Aug 18, 2023 · 3 comments · Fixed by #1879
Closed

[Navbar] The dropdown menu under the navbar gets off-viewport on mobile #1877

jcornil opened this issue Aug 18, 2023 · 3 comments · Fixed by #1879
Assignees
Milestone

Comments

@jcornil
Copy link

jcornil commented Aug 18, 2023

Describe the bug
The dropdown menu under the navbar gets off-viewport on mobile like the screenshot.

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to 'Navbar Component page'
  2. Click on 'hamburger menu' under the Basic Example.
  3. Click on 'Alarm or Profile icon' to open a dropdown menu.

Expected behavior
The dropdown menu appears in the viewport.

Actual behavior
The half of the dropdown menu appears outside the viewport.

Desktop (please complete the following information):

  • OS: Windows 11 22H2
  • Browser Chrome 116.0.5845.97, Firefox 116.0.3

Smartphone (please complete the following information):

  • Device: iPhone XS max
  • OS: iOS 16.6
  • Browser Safari

Additional context
K-20230818-181123120

@jcornil jcornil changed the title [Navbar] The drop-down menu under the navbar gets off-viewport on mobile [Navbar] The dropdown menu under the navbar gets off-viewport on mobile Aug 18, 2023
@iprzybysz
Copy link
Contributor

Thanks for reporting this bug. We'll fix it as soon as possible. At the moment, a workaround for this problem may be to change classes left/right depending on your needs in the dropdown-menu element.

@iprzybysz iprzybysz added this to the v1.0.0-rc.1 milestone Aug 21, 2023
@iprzybysz iprzybysz moved this to Todo in Tailwind Elements Aug 21, 2023
@iprzybysz iprzybysz self-assigned this Aug 21, 2023
@iprzybysz iprzybysz moved this from Todo to In Progress in Tailwind Elements Aug 21, 2023
@iprzybysz iprzybysz linked a pull request Aug 21, 2023 that will close this issue
@iprzybysz
Copy link
Contributor

iprzybysz commented Aug 21, 2023

We identified this problem - deleting data-te-navbar-ref attribute from nav element and left-auto right-0 classes from drodpown-menu element should fix this issue.

@jcornil
Copy link
Author

jcornil commented Aug 21, 2023

We identified this problem - deleting data-te-navbar-ref attribute from nav element and left-auto right-0 classes from drodpown-menu element should fix this issue.

Yeah, it fixed the issue. Thanks for fast response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants