Add default thumbnail image for inline frame

Created on 24 September 2021, about 3 years ago
Updated 26 August 2024, 4 months ago

Problem/Motivation

InlineFrame declares iframe.png as default thumbnail but this image does not exist anywhere, so the media library displays iframe medias without any icon.

Steps to reproduce

  1. Browse to /admin/content/media.
  2. See that iframe medias don't have any thumbnail. (If you inspect the HTML, you can see that it tries to load iframe.png but fails.)

Proposed resolution

The module should either include the image or use an existing image from core.

Remaining tasks

I will submit a patch.

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France prudloff Lille

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia

    Shall we add an iframe image?

    If so, please provide licensing information and ensure it is GPL compatible.

    Closing MR and resetting issue as it is a different direction.

  • Annnnddddd.... we can update that with the correct issue number. :/

  • First commit to issue fork.
  • @chrissnyder opened merge request.
  • Status changed to Needs review about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States chrissnyder Maryland

    Thank you for your work on this JSchref!. I opened a MR with your changes from the patch and added an update hook for those that already have the module installed.

  • πŸ‡ΊπŸ‡ΈUnited States chrissnyder Maryland

    The icon in the patch/MR is from https://iconoir.com/, which I belive has an open-source MIT license. If that is not GPL-compatible, we can replace it with one of the attached icons. The attached Icons i just created myself for this project so there should not be any licensing issue with them.

  • πŸ‡«πŸ‡·France prudloff Lille

    I think the MIT licence is GPL compatible : https://directory.fsf.org/wiki/License:Expat

  • Status changed to Needs work 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Tried testing the MR but the icon is still missing. Tried applying the MR before installing the module.

  • Status changed to RTBC 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Eh maybe it's an issue with getting the image via applying as a patch. I downloaded the image directly from the MR and copied that over to my files directory and works now.

  • πŸ‡·πŸ‡ͺRΓ©union Martygraphie Saint-Denis (RΓ©union)

    Hello,
    I confirm @smustgrave's last comment.
    I can't apply the patch in MR #6, but if I retrieve the image and add it manually to the folder it works too.

    I prefer the iframe.png image in comment #12, which is more explicit than the image in MR.

  • Status changed to Needs work 4 months ago
  • πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia

    Thanks everyone for continuing to push this along.

    Theres some code gripes, for which I'm happy to address myself.

    My major concern (cue bikeshedding) is the icon as proposed doesn't really capture the concept of iframe.

    It is much closer to something that would represent a popup, since it seems to have the Mac-like three dots a window would have. But as we know, iframes do not have a window-border.

    Some thoughts for an iframe: box with address bar or scroll bar. Use some kind of HTML-concept as the box concents, like a _generic_ tag: </>

    There's a variety of concepts, alongside the one proposed, found when using search on icon websites/image search.

    Lets try to keep rounded-corners/stroke-width similar to that found in the default Drupal/CKE icons. Mono/uncolored is great.

Production build 0.71.5 2024