- Issue created by @Carlitus
- πͺπΈSpain Carlitus
Another issue with this.
If i have a layout inside a layout i cannot see the controls of the first level layout. But when saving the .lpb-layout with padding 0 of the modules/contrib/mercury_editor/build/css/preview-screen.css disapears and with the padding 20px i can see well the layout controls.
Provisional solution:
function hook_library_info_alter(&$libraries, $extension) { if(!empty($libraries['preview_screen'])) { unset($libraries["preview_screen"]["css"]["component"]["build/css/preview-screen.css"]); } }
- πΊπΈUnited States esch
Another option is changing the min-height to 60px, from layout paragraphs builder.css => .js-lpb-region class. However, this still takes away how close it resembles the final rendering.
- π¬π§United Kingdom rachelf
Another provisional solution is to only add the padding when hovering over a layout section:
.lpb-layout:hover { padding: 40px 0; }
This keeps the preview closer to the final version.
- Status changed to Closed: outdated
3 months ago 8:48am 6 February 2025 - π¬π§United Kingdom rachelf
Mercury Editor 2.2 added new animation during which padding is added around controls. There was an initial issue regarding this, that has since been fixed ( #3498275 Reduce content reflow during animation on rollover β¨ Reduce content reflow during animation on rollover Active ). So I think this issue can be closed now as the solution is to update to 2.2