XWIKI-11325: Inputs don't fit automatically in panels in Flamingo skin

(cherry picked from commit 01d86c391e3c5d72f99e9dc7514fc839e4ef7388)