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

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11347032431

Upstream-Ref: Automattic/jetpack@922e940
  • Loading branch information
michaeldcain authored and matticbot committed Oct 15, 2024
1 parent 581b4fa commit d74c3d6
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 90 deletions.
58 changes: 29 additions & 29 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ This is an alpha version! The changes listed here are not final.
- Prevent welcome tour keyboard navigation from hijacking left right keys on the editor
- profile.php: Make wpcom links more concise
- Superadmin bar: always point to wp-admin even on Default admin interface style
- Verbum Comments: fix gravatar width in nested comments

## [5.64.0] - 2024-09-23
### Deprecated
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '08c34240db8ba5e448b2');
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'f4b641988445c2b095f4');

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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
Loading

0 comments on commit d74c3d6

Please sign in to comment.