Problem/Motivation
The class media--view-mode- is always showing up empty when inspecting the DOM around an embedded media entity.
Proposed resolution
view_mode.id() is always empty in the Media entity Twig template. Replace it with just view_mode
Core media.html.twig template indicates one of the available variables is view_mode.
/**
* @file
* Default theme implementation to present a media item.
*
* Available variables:
* - view_mode: View mode; for example, "teaser" or "full".
Comments
Comment #3
jwilson3