- 🇺🇸United States laura.gates
Just adding to the above conversation, I got around this by adding a field to media asking users to select what aspect ratio they want:
- default 16:9
- square 1:1
- vertical 4:5
I then themed as normal for my different display modes.
- 🇩🇪Germany DiDebru
For me the MR did not apply on 11.1.5.
I had a similiar issue that if the source file is different on the translation than the name would not be updated and always gets the new source file title.
My WA would be to check on the $_POST variable but that feels like a real ugly hack.
if ($this->activeLangcode === $langcode && $_POST['name'][0]['value'] ?? '' !== $translation->getName()) { $translation->setName($_POST['name'][0]['value']); }
- 🇪🇨Ecuador jwilson3
I found that there is work going on elsewhere for this, including:
- Another contrib module, that has also implemented a modal approach and has more installs than this module: https://www.drupal.org/project/media_library_edit →
- Core design issue: 📌 Design a UI to allow various kinds of alterations to referenced Media entities in a modal Active
- Core implementation issue: ✨ Allow media items to be edited in a modal when using the field widget Postponed
- 🇪🇨Ecuador jwilson3
✨ Support CKEditor5 Needs review has been closed and marked fixed. Since this now has a working solution in contrib, should this issue re-focus efforts around inclusion of the functionality from https://www.drupal.org/project/edit_media_modal → into core's Media Library CKE5 integration?
- 🇩🇪Germany Anybody Porta Westfalica
Just wanted to leave a note here, that we need something similar, but not for the alt-text, but for a subset of fields of the media entity to override in the referencing media reference field wiget.
https://www.drupal.org/project/media_library_media_modify → is close, but implements its own field type, which is a problem for existing sites. Instead, it should be a field widget for the existing media references.
- 🇮🇳India prashant.c Dharamshala
I came across this comment https://www.drupal.org/project/drupal/issues/3028868#comment-13812371 → , which highlights that the Drupal image module does not support SVGs for a variety of reasons. Given this, it is unclear whether the current issue is still relevant.
Consequently, it appears that utilizing the SVG Image module might be a more suitable alternative, as it offers a widget and formatter for handling SVG fields.