Skip to content

Commit

Permalink
XWIKI-21864: Menu Application: If list element is a link, the xDropdo…
Browse files Browse the repository at this point in the history
…wn-header-toggle drops to a new line and other weirdness (#2893)

* Fixed incorrect padding on link section headers in the submenus
* Positioned the toggle absolutely in those sections so that it doesn't eat away at space the text had before and force a linebreak where there used to be none.
  • Loading branch information
Sereza7 authored Feb 16, 2024
1 parent 58576db commit 6526e78
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -853,10 +853,17 @@ require(['jquery','xwiki-l10n!menu-ui-translation-keys'], function($, l10n) {
}
}
/* When in dropdown we also have a link, reset the duplicated padding */
& > span > a {
& > .xDropdown-header > span > a {
padding: 0;
display: inherit;
}
/* Reposition the toggle when in a dropdown of fixed size
to avoid eating away at the bit of space we have for the text. */
& > .xDropdown-header > .xDropdown-header-toggle {
position: absolute;
right: 0;
top: 0;
}
}
/* Separator horizontal inside menu */
&:empty {
Expand Down

0 comments on commit 6526e78

Please sign in to comment.