whitecube / nova-flexible-content

Flexible Content & Repeater Fields for Laravel Nova
MIT License
790 stars 234 forks source link

Layouts menu css error using component inside belongs to many fields #362

Open muni-oscar-parra opened 2 years ago

muni-oscar-parra commented 2 years ago

I upgrade to nova 4 and now he layouts menu is not displayed correctly using component inside belongs to many fields, however within resource fields it works

Configuration where it does not work, inside belongs to many fields

Screen Shot 2022-07-08 at 10 42 07 PM

Screen Shot 2022-07-08 at 10 42 53 PM

configuration where it works, in resource fields Screen Shot 2022-07-08 at 10 52 54 PM

toonvandenbos commented 2 years ago

Hi, I'm afraid this will need more work than it looks like since this seems to be linked to an overflow: hidden statement within the BelongsToMany field, meaning we should render the menu in the DOM's root (body) and position it correctly in the screen, which is not as easy as it seems as this field can be included inside other complex fields with complex positioning/collapsing mechanisms. Maybe a redesign of the menu as a fixed pop-up would be more suitable to the variety of cases it has to cover.