Styled-components wrapper breaks spacing
-
Description:
With AI Engine active, paragraph spacing collapses in the Gutenberg block editor — no visible gap between paragraphs while editing. The published front end is completely unaffected (normal spacing), so this is editor-only.
What I found:
Using Chrome DevTools, I inspected the paragraph block directly. The paragraph’s own computed
margin-bottomis correct (32px) — so this isn’t a CSS override on the<p>element itself.The actual issue: right above my paragraph block in the DOM, AI Engine injects a
<style>tag followed by an empty styled-components wrapper div:<div class="sc-bCwgXz hMoAxA neko-wrap...">This wrapper appears to sit inside the Gutenberg editor’s content flow itself (not scoped to AI Engine’s own admin UI), which disrupts the normal margin collapse/layout between blocks — even though each paragraph’s own margin value is unaffected.
Steps to reproduce:
- Activate AI Engine (all other plugins deactivated to isolate).
- Edit any post with 2+ paragraph blocks in Gutenberg.
- Inspect DOM —
neko-wrapstyled-components div appears between blocks in the editor content area. - Paragraph spacing visually collapses in the editor, though front end renders fine.
Environment:
- AI Engine version: 3.6.1
- WordPress version: 7.0.1
- Theme: Kadence
This is on all of my WordPress sites (x5) and only seen on the backend edit blogpost screen. You can use californiaisforadventure.com if that helps but again, it’s happening on multple sites and only on the backend.
Happy to provide more DOM/console output if useful.
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.