Broken CSS classes on Media entities

Created on 6 March 2023, over 1 year ago
Updated 20 March 2023, over 1 year ago

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".

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.1

Component

User interface

Created by

🇪🇨Ecuador jwilson3

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024