Make media library field widget collapsible by widget setting or less prominent

Created on 5 April 2023, over 1 year ago

Problem/Motivation

The media field widget fieldset is very space-consuming in entity forms. While other fields like text fields and even textareas are quite compact, the fieldset display of media library items gets a lot of focus and height.

Steps to reproduce

  • Place a media reference field on a node type and select the media library widget
  • Create a new entity of that type and compare the UI of the media library field widget fieldset to other form items and their visual impact

Proposed resolution

  • Make media library widgets collapsible by a setting on "Manage form display". Perhaps add a default setting or override on the media library settings page.
  • Reduce prominence of fieldsets in Drupal forms in general? (Gin example - but I guess not (only) a theme topic)
  • Other ideas to make the prominence of all field types more equal?

Remaining tasks

Discuss possible solutions and focus
Implement
Review
Release

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Release notes snippet

TBD

Feature request
Status

Active

Version

10.1

Component
Media 

Last updated about 6 hours ago

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Comments & Activities

Production build 0.71.5 2024