Skip to content

Update/post author block alignment#40380

Closed
Alex-Kostov wants to merge 2 commits intoWordPress:trunkfrom
Alex-Kostov:update/post-author-block-alignment
Closed

Update/post author block alignment#40380
Alex-Kostov wants to merge 2 commits intoWordPress:trunkfrom
Alex-Kostov:update/post-author-block-alignment

Conversation

@Alex-Kostov
Copy link
Copy Markdown
Contributor

What?

This pull request is providing an update for the Post Author block.
Currently the Post Author block have an option to align the text left / center / right, however this aligns do not include the image. In this pull request I've updated the code so that when align option is used it align both text and image.

Why?

This PR is fixing this issue 35964

How?

About the details I've used justify-content in order to align both text and image.

Testing Instructions

  1. Create new post.
  2. Add Post Author block
  3. Test the block alignment

Screenshots or screencast

Image after the fix, here we can see that both the text and the image can be aligned at the center.
image

Video how we can change the alignment
https://drive.google.com/file/d/1MIyz5oggYGeGCf5CQcZWzvS9Z2ecA4p1/view?usp=sharing

Align text block options now align both the Image and the text, before it was aligning only the text.

Fixes WordPress#35964
@Alex-Kostov Alex-Kostov requested a review from ajitbohra as a code owner April 15, 2022 14:54
@skorasaurus skorasaurus added the [Block] Post Author Affects the Post Author Block label Apr 25, 2022
@paaljoachim
Copy link
Copy Markdown
Contributor

@michalczaplinski and @c4rl0sbr4v0 Perhaps you can take a look at this PR?

Copy link
Copy Markdown
Contributor

@cbravobernal cbravobernal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution @Alex-Kostov !
I think is not a good idea to add block-specific styles to a common SCSS file. Could we fix this issue only in the post-author context?

@github-actions
Copy link
Copy Markdown

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Required label: Any label starting with [Type].
  • Labels found: [Block] Post Author.

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

@t-hamano
Copy link
Copy Markdown
Contributor

Hi everyone, the Post Author block has been deprecated, so I think we don't need to address this issue anymore. See #55352 for more details.

@t-hamano t-hamano closed this Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Post Author Affects the Post Author Block

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants