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.
Comment | File | Size | Author |
---|---|---|---|
#5 | media-initial.png | 101.43 KB | mikispeed |
#3 | media-2830691-3.patch | 12.95 KB | botanic_spark |
Selection_045.jpg | 105.33 KB | mikispeed |
Comments
Comment #2
botanic_spark CreditAttribution: botanic_spark at Develomon commentedComment #3
botanic_spark CreditAttribution: botanic_spark at Develomon commentedFirst version of the patch.
Comment #4
rodrigo panchiniak fernandes CreditAttribution: rodrigo panchiniak fernandes commentedCould you please add an "Issue screenshot" showing the inconsistence on dimensions and layout for different media types?
Comment #5
mikispeed CreditAttribution: mikispeed commented@rodrigo panchiniak fernandes updated issue with initial look.
Comment #6
joseph.olstadComment #7
slashrsm CreditAttribution: slashrsm at MD Systems GmbH commentedThis 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.
Comment #8
slashrsm CreditAttribution: slashrsm at MD Systems GmbH commented#2834729-33: [META] Roadmap to stabilize Media Library