You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Video paragraph type sets the video field to render the remote video media type using the view mode Responsive 3x2.
However, that view mode is not configured for the Remote Video media type, so it defaults back to Default view mode.
Now, Default view mode for remote video media entity just uses the Oembed formatter with no max settings for width or height, so that defaults to 200px x 112px, meaning we have a tiny video on the page.
Following that, we have a template for the video paragraph that just adds a wrapper class around the video to make it responsive (I think - the class is responsive-wrapper), but Drupal core already uses responsive videos out of the box. This template also removes all the default paragraph classes.
I think we should:
Set the video paragraph to render the default view mode for the Remote video
Set the remote video default view mode to use width: 800px and height 450px (so it maintains the aspect ration of YouTube (16:9))
Delete that template and just use the default paragraph template (less to maintain)
Remove the items about video in localgov_subsites_paragraphs.module which I don't think will be needed anymore
The text was updated successfully, but these errors were encountered:
The Video paragraph type sets the video field to render the remote video media type using the view mode Responsive 3x2.
However, that view mode is not configured for the Remote Video media type, so it defaults back to Default view mode.
Now, Default view mode for remote video media entity just uses the Oembed formatter with no max settings for width or height, so that defaults to 200px x 112px, meaning we have a tiny video on the page.
Following that, we have a template for the video paragraph that just adds a wrapper class around the video to make it responsive (I think - the class is
responsive-wrapper
), but Drupal core already uses responsive videos out of the box. This template also removes all the default paragraph classes.I think we should:
localgov_subsites_paragraphs.module
which I don't think will be needed anymoreThe text was updated successfully, but these errors were encountered: