Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resize for smaller devices does not have an effect on certain embed block variations #68696

Open
4 of 6 tasks
andreawetzel opened this issue Jan 15, 2025 · 0 comments
Open
4 of 6 tasks
Labels
[Block] Embed Affects the Embed Block [Type] Bug An existing feature does not function as intended

Comments

@andreawetzel
Copy link

Description

When I toggle the Media Settings "Resize for smaller devices" on a YouTube embed, classes are added to the block wp-embed-aspect-16-9 wp-has-aspect-ratio but this doesn't happen for Soundcloud. The result is that the responsive toggle doesn't have any impact on a Soundcloud embed or Pocket Cast embed.

Step-by-step reproduction instructions

  1. Add a SoundCloud Embed
  2. Under Block > Media settings > toggle on "Resize for smaller devices"
  3. No classes are added and block is not responsive in mobile
  4. Observe steps 1-2 for a YouTube embed to see the difference

Screenshots, screen recording, code snippet

Screenshot of Pocket Casts, SoundCloud and YouTube Embeds in editor
Image

Screenshot of published page with SoundCloud and YouTube Embeds
Image

Environment info

  • WP 6.7.1
  • No Gutenberg
  • Twenty Twenty Five Theme
  • Mac / Chrome

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@andreawetzel andreawetzel added the [Type] Bug An existing feature does not function as intended label Jan 15, 2025
@Mamaduka Mamaduka added the [Block] Embed Affects the Embed Block label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Embed Affects the Embed Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants