Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Post content does not have padding in the editor #144

Closed
jffng opened this issue Oct 21, 2021 · 1 comment
Closed

Post content does not have padding in the editor #144

jffng opened this issue Oct 21, 2021 · 1 comment
Labels
[Component] Block Templates [Type] Bug Something isn't working [Type] Gutenberg An upstream bug or feature request in Gutenberg
Milestone

Comments

@jffng
Copy link
Collaborator

jffng commented Oct 21, 2021

Describe the bug

Currently because of where our padding is applied, post content does not appear with padding in the editor.

To Reproduce

  1. Go to the post editor
  2. Add some content
  3. Preview on mobile

Expected behavior
I expect the padding to mirror what's displayed on the front-end.

Screenshots

Editor Front-end
Screen Shot 2021-10-21 at 2 43 15 PM Screen Shot 2021-10-21 at 2 43 49 PM

Additional context
This is happening because in our templates, we apply padding to a group block that contains the post-content, not the post-content itself or any children of it: https://github.com/WordPress/twentytwentytwo/blob/trunk/block-templates/single.html#L3

The editor only renders the post-content, which has no padding. It isn't aware of the container that has the padding applied, which I think is the correct behavior.

@kjellr
Copy link
Collaborator

kjellr commented Nov 15, 2021

Closing to consolidate this issue into #234.

@kjellr kjellr closed this as completed Nov 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
[Component] Block Templates [Type] Bug Something isn't working [Type] Gutenberg An upstream bug or feature request in Gutenberg
Projects
None yet
Development

No branches or pull requests

2 participants