Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The media upload widget as repetitive text, unneeded buttons and is rather bulky.
Proposed resolution
- Decrease the size of the initial, empty preview
- Remove redundant text
- Hide the "Attach" button
Comment | File | Size | Author |
---|---|---|---|
#5 | commons-simplify-media-widget-2217131-5.patch | 121.78 KB | Zarabadoo |
#1 | Commons.png | 33.88 KB | Zarabadoo |
Comments
Comment #1
Zarabadoo CreditAttribution: Zarabadoo commentedThis patch will make the widget look like this.
Comment #2
Devin Carlson CreditAttribution: Devin Carlson commentedTested #1 which looks great but now needs a reroll after a few recent changes to Media:
$element['attach_button']
can be removed).Comment #3
Zarabadoo CreditAttribution: Zarabadoo commentedPatch updated with the proposed changes.
Comment #4
Zarabadoo CreditAttribution: Zarabadoo commentedComment #5
Zarabadoo CreditAttribution: Zarabadoo commentedPatch updated, yet again, with the patch linked for the media module baked into the build.
Comment #6
Devin Carlson CreditAttribution: Devin Carlson commentedI tested #5 with a local Commons site and verified that adding Media continued to work properly with all of the styling improvements.
Comment #8
Zarabadoo CreditAttribution: Zarabadoo commented#5 has now been committed.