Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Featured Image inconsistent style between Editor and front end #52238

Open
albarin opened this issue Jul 3, 2023 · 5 comments
Open

Post Featured Image inconsistent style between Editor and front end #52238

albarin opened this issue Jul 3, 2023 · 5 comments
Labels
[Block] Columns Affects the Columns Block [Block] Post Featured Image Affects the Post Featured Image Block [Type] Bug An existing feature does not function as intended

Comments

@albarin
Copy link
Contributor

albarin commented Jul 3, 2023

Description

The Post Featured Image has different behavior in the editor and in the front end.
When inserted in a column, if the image is wider than the column it shows under the second column content in the editor, but over it in the front-end.
It should have the same behavior in both cases.

Step-by-step reproduction instructions

  1. Create a new page or post.
  2. Insert a columns block with two columns.
  3. Insert the Post Featured Image in the left column and give it a width larger than the column.
  4. Insert some other block on the right column (like a Paragraph with some text).
  5. Notice the image is shown under the right column blocks in the Editor.
  6. Save and go to the front end and notice the image is shown over the right column blocks.

Screenshots, screen recording, code snippet

Editor Front-end
Screenshot 2023-07-03 at 11 20 18 Screenshot 2023-07-03 at 11 20 23

Environment info

WordPress 6.2.2
Gutenberg 16.0.0

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@carolinan carolinan added the [Block] Post Featured Image Affects the Post Featured Image Block label Jul 3, 2023
@ghorivipul97
Copy link
Contributor

@carolinan kindly please assign this issues

@jordesign
Copy link
Contributor

Hi @albarin - thanks for reporting this.

I'm interested to know - is this occurring for you with one of the default themes (like TwentyTwentyThree) or is it only with your current theme? I'd appreciate it if you could install and activate TwentyTwentyThree and see if the issue occurs then as well.

@jordesign jordesign added [Type] Bug An existing feature does not function as intended [Status] Needs More Info Follow-up required in order to be actionable. labels Jul 18, 2023
@albarin
Copy link
Contributor Author

albarin commented Jul 18, 2023

Hi @albarin - thanks for reporting this.

I'm interested to know - is this occurring for you with one of the default themes (like TwentyTwentyThree) or is it only with your current theme? I'd appreciate it if you could install and activate TwentyTwentyThree and see if the issue occurs then as well.

Hey @jordesign, this is happening with TwentyTwentyThree (it's the theme I was using to take the screenshots above) and other themes as well, I've tried TwentyTwentyTwo and I got the same result.

@github-actions
Copy link

github-actions bot commented Aug 3, 2023

Help us move this issue forward. This issue is being marked stale since it has no activity after 15 days of requesting more information. Please add info requested so we can help move the issue forward. Note: The triage policy is to close stale issues that need more info and no response after 2 weeks.

@github-actions github-actions bot added the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Aug 3, 2023
@jordesign
Copy link
Contributor

Thanks for the explanation @albarin - I can confirm this in testing as well following your instructions.

  • In the Post Editor - the content of the second column appears over the overflow of the first (ie. the image).
  • When viewing the front end - the overflowing image appear over the content of the second column.

I do note that adding position:relative to the second column immediately shifts it higher in the z-index to show over the top.

@jordesign jordesign added [Block] Columns Affects the Columns Block and removed [Status] Needs More Info Follow-up required in order to be actionable. [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. labels Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Columns Affects the Columns Block [Block] Post Featured Image Affects the Post Featured Image Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

4 participants