As per T115860: Show image thumbnail in both steps of mw.ForeignStructuredUpload.BookletLayout we are trying to show thumbnails of images where available. When the file being uploaded is not an image we need to show a generic paper clip like icon.
Description
Details
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| SelectFileWidget: Show thumbnail when dropTarget is shown | oojs/ui | master | +243 -44 | |
| Icons: Add attachment icon to Mediawiki theme | oojs/ui | master | +21 -0 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T115858 Design improvements for mw.ForeignStructuredUpload.BookletLayout | |||
| Resolved | • Prtksxna | T115860 Show image thumbnail in both steps of mw.ForeignStructuredUpload.BookletLayout | |||
| Resolved | • Prtksxna | T124571 "Paper clip" like icon required to show that a file is attached |
Event Timeline
Does such an icon already exist and is being used somewhere? I couldn't find anything in OOUI, but maybe I didn't look closely enough.
@Prtksxna
There is a link icon that is being used in Echo. See https://phabricator.wikimedia.org/T121624
Thanks for that link, but a link icon might not be the right thing to use here. In our case the widget needs to show that a file is attached rather than that a file is linked.
We have a pretty similar one here, but there are space and line thickness issues that I need to resolve. Give me until Friday to get this resolved, or is this pretty urgent?
Friday is alright I guess, though sooner would be nice. Once you are done with the icon you can attach it here and I'll take care of the OOjs patch.
Change 266950 had a related patch set uploaded (by Prtksxna):
Icons: Add attachment icon to Mediawiki theme
Were you asking for a different clip icon specifically for Apex? I only maintain one library. :/
Change 266950 abandoned by Prtksxna:
Icons: Add attachment icon to Mediawiki theme
Reason:
Adding the icon in I3f68bc instead.
Change 265279 had a related patch set uploaded (by Prtksxna):
SelectFileWidget: Show thumbnail when dropTarget is shown
Change 265279 merged by jenkins-bot:
SelectFileWidget: Show thumbnail when dropTarget is shown