Clean installation of joomla 4.1.4 without any changes.
I noticed that on screens with resolutions between 768px (medium) and 992px (large), the navigation menu does not collapse to hamburger menu.
Joomla 4.1.4
PHP 8.0.13
MySQL 8.0.27
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
?
|
Thanks @ChristineWk
This fix resolved the issue. However, it would be better if it can be implemented in the future directly in the joomla core.
Unfortunately, I can't tell you how to proceed here. let's wait for more information
I notice that the issue is still present on the most recent nightly build, Joomla_4.2.0-beta1-dev-Development-Full_Package.
I don't know if it helps or not, but the same issue includes sidebars - they are not hidden in the 1024px mobile size, which is the iPad Pro 12.9 inch. It works in all other sizes properly.
I can also confirm that the menu issue is still a problem. I found the CSS here and that fixed things for me, but not the sidebar. You can hide the bar itself, but you cannot hide the container, so there's a huge white-bar in the iPad Pro 12.9.
I think it is a bug in the PR #36900
in line 18 in templates/cassiopeia/html/mod_menu/collapse-metismenu.php
-md in class and before Joomla 4.1.3 it was -lg
I think better is:
<nav class="navbar navbar-expand-lg" aria-label="<?php echo htmlspecialchars($module->title, ENT_QUOTES, 'UTF-8'); ?>">
Labels |
Added:
bug
|
Is this issue is still open? ,because adding some bootstrap classes will automatically resolve the issue i think
yes, feel free to submit a pull request
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-05-12 10:26:10 |
Closed_By | ⇒ | richard67 |
That could be a possible solution. Written by a user in the German Joomla forum:
`@media (min-width: 768px) and (max-width: 991px) {
.navbar-expand-md .navbar-collapse:not(.show) {
display: none !important;
}
}
@media (max-width: 991px) {
.navbar-expand-md .navbar-toggler {
display: block !important;
}
}
`