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

[Bug]: NavigationMenuContent always stays on the left. #977

Open
2 tasks
Sngt25 opened this issue Dec 24, 2024 · 2 comments
Open
2 tasks

[Bug]: NavigationMenuContent always stays on the left. #977

Sngt25 opened this issue Dec 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Sngt25
Copy link

Sngt25 commented Dec 24, 2024

Reproduction

Describe the bug

Default:
image

Desired Outcome:
image

System Info

N/A

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@Sngt25 Sngt25 added the bug Something isn't working label Dec 24, 2024
@Sngt25 Sngt25 changed the title [Bug]: Navigation menu always stays on the left. [Bug]: NavigationMenuContent always stays on the left. Dec 24, 2024
@Dustella
Copy link

It seems, this is a feature of upstream Radix. Radix itself does not support positioning the MenuContent stuff under the menu button, instead, it always centers the content in the screen.

This is a minimal reproduction of this in Radix, just make your title long enough.

https://codesandbox.io/p/devbox/radix-vue-navigationmenu-forked-8f7d75?workspaceId=ws_53UetLxSCGtXZKpZVruxvf

In Shadcn-Vue, instead of centering the content, it just put the content at the beginning of the menus: it's the same problem as above.

@Dustella
Copy link

I do not know whether this is intentional in Shadcn, maybe they just love to make small menu titles and large menu dropdowns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants