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

Align navbar dropdowns for visibility #317

Open
lalquier opened this issue Mar 10, 2022 · 0 comments
Open

Align navbar dropdowns for visibility #317

lalquier opened this issue Mar 10, 2022 · 0 comments

Comments

@lalquier
Copy link

Hi... I couldn't find a way to force the Personal Tools menu to open aligned to the right when it is located all the way to the right of the navbar.
By default, it opens align to the left of the dropdown, which makes it appear outside of the page.

I ended up having to add the bootstrap class to force the menu to align to the right in the PersonalTools.php page, which of course isn't ideal.

[ 'class' => 'p-personal-tools dropdown-menu dropdown-menu-right' ],

The same thing happens to any menu pushed to the right side of the navbar.
Any chance to catch the value of the 'position' parameter and automatically assign the right Bootstrap class?

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

No branches or pull requests

2 participants