-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[4.0] Dropdown menu overflow #22015
[4.0] Dropdown menu overflow #22015
Conversation
PR for joomla#22012 As seen in the screenshot if the menu text is too long it breaks out of the dropdown. This PR fixes that. Note it doesnt fix the left alignment @ciar4nn any suggestions _testing_ requires npm run build:css and changing the language string to something long
Appears to be some js applying the following inline styling to the dropdown...
It is that |
administrator/templates/atum/scss/vendor/bootstrap/_dropdown.scss
Outdated
Show resolved
Hide resolved
@ciar4n I can't even find the js that is doing that :( |
It is
inside file There was an issue to allow disabling these inline style via JS twbs/bootstrap#23378 (Popper.js messing up dropdown styles) So we can add https://github.com/joomla/joomla-cms/blob/4.0-dev/layouts/joomla/toolbar/dropdown.php#L36 Documentation has not been updated yet ??? You can see then use something like .btn-group .dropdown-menu {
....
left: auto;
right: auto;
width: auto;
} which will should also fix current positioning problem for RTL too |
Thanks I will take a look at those links later |
It has but this is only for BS 4.1 so the link is https://getbootstrap.com/docs/4.1/components/dropdowns/#dropdown-options |
Updated PR and original post. Thanks @ggppdk for pointing me in the correct direction |
@cavo789 https://github.com/joomla/joomla-cms/tree/4.0-dev#how-to-get-a-working-installation-from-the-source You can not use patchtester alone for testing if/when there are css or js changes as I wrote in the original post |
I have tested this item ✅ successfully on 66ec5ee This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22015. |
I have tested this item ✅ successfully on 66ec5ee This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22015. |
Ready to Commit after two successful tests. |
I have tested this item ✅ successfully on 66ec5ee This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22015. |
Thanks guys! Nice teamwork! |
thanks |
PR for #22012
As seen in the screenshot if the menu text is too long it breaks out of the dropdown. This PR fixes that. Note it doesn't fix the left alignment
@ciar4n nany suggestions
testing requires
npm run build:css
and changing the language string to something longbefore
after