Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/wp-content/themes/twentytwenty/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -3577,6 +3577,7 @@ figure.wp-block-table.is-style-stripes {
line-height: 1.4;
}

.entry-content p img,
.entry-content li img {
display: inline-block;
}
Expand Down
1 change: 1 addition & 0 deletions src/wp-content/themes/twentytwenty/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3601,6 +3601,7 @@ figure.wp-block-table.is-style-stripes {
line-height: 1.4;
}

.entry-content p img,
.entry-content li img {
Comment on lines +3604 to 3605
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The ticket needed the 'changes-requested' keyword.

  • The specificity of .entry-content p img could be too high.
  • Centered images added with Classic Editor need display: block to center properly.
  • I closed ticket 57912 to address inline images in the Verse block at the same time.

One option with lower specificity:

Suggested change
.entry-content p img,
.entry-content li img {
html :where(.entry-content p img:not(.aligncenter)),
:where(.wp-block-verse) img,
.entry-content li img {

display: inline-block;
}
Expand Down
Loading