#Matching/Changing Block Spacing in Editor

7 messages · Page 1 of 1 (latest)

woeful folio
#

I want to increase the spacing between the paragraphs/headings/lists in the editor. You can notice the spacing in editor vs preview image. In Preview, spacing is fine as I needed, but in editor it looks congested.
Do you guys have idea if it can be done in payload or it's upto lexical team?
Your technical guidance would be helpful.

I've seen this doc: https://payloadcms.com/docs/fields/blocks#customizing-the-way-your-block-is-rendered-in-lexical
But it seems like using the very word in that word's own definition

woeful folio
supple pelican
#

What you could do is add extra margin to the elements inside the lexical editor. the default in mine is .55em (8.8px)

.ContentEditable__root > * { margin-bottom: xxx }

#

.ContentEditable__root being the div where all your elements from lexical editor are in

woeful folio
#

THANK YOU VERY MUCH!! Brother

bright owlBOT