Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The admin menu toolbar misaligns sub items vertically, especially when the parent item is 2 lines, especially in a browser with a bigger font size.
2 pictures should explain.
Before fix:
After fix:
The problem is the weird, arbitrary -22px
margin.
The fix is very easy:
html #admin-menu .dropdown li li {
position: relative;
}
html #admin-menu .dropdown li li.expandable ul {
margin: 0; /* undo the top -22px and left 160px */
position: absolute;
left: 160px !important; /* fixed width from admin menu, important because JS makes it 'auto' */
top: 0;
}
That's what I added in a custom CSS to override admin menu's CSS.
I might make a patch later.
Comment | File | Size | Author |
---|---|---|---|
#5 | wrong_submenu_items-2398413-5.patch | 1.03 KB | Tess Bakker |
| |||
#2 | screen-admin-menu-toolbar-patch.png | 62.51 KB | rudiedirkx |
#2 | screen-admin-menu-patch.png | 54.34 KB | rudiedirkx |
screen-q7-admin-menu-post.png | 36.47 KB | rudiedirkx | |
screen-q7-admin-menu-pre.png | 36.76 KB | rudiedirkx |
Comments
Comment #1
rudiedirkx CreditAttribution: rudiedirkx commentedComment #2
rudiedirkx CreditAttribution: rudiedirkx commentedSo simple. After patch:
Not toolbar:
Toolbar:
Comment #3
frank.schalkwijk CreditAttribution: frank.schalkwijk commentedI changed your patch a little to make it work with the adminimal theme.
Comment #5
Tess BakkerNew patch, same code only not corrupted.
Also tested the patch with RTL and LTR and 'Adminimal Admin Menu', works nice on Chrome and Firefox!
Comment #6
truls1502I am sorry for no reply until now.
There are many issues regarding this module admin_menu which is a bit difficult for us to follow up since some of the issues might be already outdated, or is already fixed by the module or any other modules or itself core which means that the problem might no longer need to be fixed.
We can see that the issue has been created for a few years ago, I hope it is okay for you that I am postponing the issue, and give you around two weeks. If you still face the problem, could you tell us the step by step when until you get the error message or what is frustrated you, and a list of modules you are using related to admin_menu and a screenshot that might help us? So it makes us easier to reproduce your issue.
However, after two weeks with no feedback - we will close this issue. So in case, you noticed it after the issue is closed, do not hesitate to reopen it like and fill information which is mentioned above.
So before giving us a feedback, do you mind to test it again with our latest 7.x-3.x-dev?
Thank you for understanding! :)
Comment #7
truls1502This issue has been automatically marked as closed because it has not had recent activity after the last post.
However, if you or someone is still facing the same issue as described to the issue, could you please to re-open the issue by changing the status of the issue, and add an explanation with more details which can help us to reproduce your situation.
Again, thank you for your contributions! :)