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.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

prudloff created an issue. See original summary.

prudloff’s picture

Status: Active » Needs review
peterwcm’s picture

Status: Needs review » Needs work

test is failing somehow

dpi’s picture

Title: iframe.png does not exist » Add default thumbnail image for inline frame
Version: 1.0.0-alpha3 » 1.0.x-dev
Status: Needs work » Active

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.

jschref’s picture

Adds an icon and install file to utilize it. Ref. https://www.drupal.org/node/2863992

jschref’s picture

StatusFileSize
new28.58 KB

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

Also just as a note for the next guy:
https://github.com/cweagans/composer-patches/issues/172

ChrisSnyder made their first commit to this issue’s fork.

chrissnyder’s picture

Status: Active » Needs review

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.

chrissnyder’s picture

StatusFileSize
new4.87 KB
new4.98 KB

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.

prudloff’s picture

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

smustgrave’s picture

Status: Needs review » Needs work

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

smustgrave’s picture

Status: Needs work » Reviewed & tested by the community

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.

martygraphie’s picture

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.

dpi’s picture

Status: Reviewed & tested by the community » Needs work

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 frame.

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.

smustgrave’s picture

I've asked one of our UX designers for an image as we are trying to use this on a new project.

smustgrave’s picture

Status: Needs work » Needs review

dave reid made their first commit to this issue’s fork.