Skip to content

Commit

Permalink
Verbum Comments: fix gravatar width in nested comments for block them…
Browse files Browse the repository at this point in the history
…es (#39757)

* Only set a max-width to images in the comment content

* changelog

* Handle non-block theme comments

* Fix fallback :not syntax

* Update comment
  • Loading branch information
michaeldcain authored Oct 15, 2024
1 parent 2c6092b commit 922e940
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Verbum Comments: fix gravatar width in nested comments
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@

}

/* This prevents images from overflowing the comment area. */
.comment img {
// This prevents images from overflowing the comment area. The :not() selector
// handles comments in non-block themes, but is too general for block themes,
// breaking flex layouts.
.comment img:not(.wp-block-comment-template .comment img),
.wp-block-comment-content img {
max-width: 100%;
}

Expand Down

0 comments on commit 922e940

Please sign in to comment.