unlayer / react-email-editor

Drag-n-Drop Email Editor Component for React.js

Home Page:https://unlayer.com/embed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

List overflow causes vertical spacing between blocks

VitorCodes opened this issue · comments

When setting a text's container padding to 0, if adding list elements such as bullet or numbered lists, these will overflow the main container element and add extra spaces between sibling blocks due to <ul> and <ol>'s default margin top and bottom values (1 rem).

So, if the text block, say A, ends with plain text, the block B will be placed right under it. Whereas if the last element in a text block is a list, block B will have a vertical spacing from block A (Check images below)

The API doesn't expose anything to manage this so, is this something that could be fixed?

Screenshot 2024-03-20 at 21 49 02 Screenshot 2024-03-20 at 21 50 18