Problem/Motivation

At the moment out of the box Media experience is non consistent. There are various differences in presentation of selected Media Entities, most notably dimensions and layout of the display.
Default presentation:

Proposed resolution

Create Media Thumbnail Image Style

Create Media Thumbnail image style as cropped square (for example 150x150 pixels).

Create Media Thumbnail view mode

Available view modes for Media Entities do not provide a way to display Media Entities properly when viewed inside Entity Browser field widget.
Make new view mode (named for example Media Thumbnail) that will serve for displaying Selected media entities.

Configure Media Thumbnail view mode for all Media Bundles

Configure new view mode to display only needed data, named:

  • Media name
  • Thumbnail - default Image style should be Media Thumbnail.

Disable auto open entity browser by default

When editing entity that has field and field widget is Entity Browser, Entity Browser is opened by default. Have “Auto open entity browser” setting for Display default to disabled.

Entity browser improve css for thumbnail display

Create and adjust CSS in Media to reflect proposed look.

Add indication which Media Bundle is listed

With proposed look there is no indication which Media Bundle was selected. This is especially confusing with videos and images (since videos get also thumbnail and appear the same as images in the list).
Add icons that will match media bundle with symbol.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikispeed created an issue. See original summary.

botanic_spark’s picture

Assigned: Unassigned » botanic_spark
botanic_spark’s picture

Status: Active » Needs review
FileSize
12.95 KB

First version of the patch.

rodrigo panchiniak fernandes’s picture

Status: Needs review » Needs work

Could you please add an "Issue screenshot" showing the inconsistence on dimensions and layout for different media types?

mikispeed’s picture

Issue summary: View changes
FileSize
101.43 KB

@rodrigo panchiniak fernandes updated issue with initial look.

joseph.olstad’s picture

Issue tags: +Needs backport to D7
slashrsm’s picture

This looks great.

Please note that when #2831274: Bring Media entity module to core as Media module lands core will take over the "media" module namespace. This will make D8 version of this module obsolete in contrib. This patch will be very useful for core. I will link to it from the relevant issue.

slashrsm’s picture