Skip to content

Commit

Permalink
Component: Post Author Block
Browse files Browse the repository at this point in the history
Align text block options now align both the Image and the text, before it was aligning only the text.

Fixes WordPress#35964
  • Loading branch information
Alex-Kostov committed Apr 15, 2022
1 parent 731d178 commit 8b19278
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 12 additions & 0 deletions packages/block-library/src/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,28 @@
// Text alignments.
.has-text-align-center {
text-align: center;

&.wp-block-post-author {
justify-content: center;
}
}

.has-text-align-left {
/*rtl:ignore*/
text-align: left;

&.wp-block-post-author {
justify-content: left;
}
}

.has-text-align-right {
/*rtl:ignore*/
text-align: right;

&.wp-block-post-author {
justify-content: right;
}
}

// This tag marks the end of the styles that apply to editing canvas contents and need to be manipulated when we resize the editor.
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-author/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
}

&__content {
flex-grow: 1;
flex-basis: 0;
}

Expand Down

0 comments on commit 8b19278

Please sign in to comment.