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) (#2900)

* 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.

(cherry picked from commit 6526e78)

Co-authored-by: Lucas C <lucas.charpentier@imt-atlantique.net>
  • Loading branch information
github-actions[bot] and Sereza7 authored Feb 16, 2024
1 parent 85babca commit 12f820a
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 */
&amp; &gt; span &gt; a {
&amp; &gt; .xDropdown-header &gt; span &gt; 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. */
&amp; &gt; .xDropdown-header &gt; .xDropdown-header-toggle {
position: absolute;
right: 0;
top: 0;
}
}
/* Separator horizontal inside menu */
&amp;:empty {
Expand Down

0 comments on commit 12f820a

Please sign in to comment.