Page MenuHomePhabricator

"Paper clip" like icon required to show that a file is attached
Closed, ResolvedPublic

Description

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.

Event Timeline

Prtksxna raised the priority of this task from to Needs Triage.
Prtksxna updated the task description. (Show Details)
Prtksxna added projects: Design, OOUI.

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.

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.

Yup we got one, it's not in the final folder. But I'll get that fixed soon.

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.

@violetto, do you also happen to have the same icon for the Apex theme?

Change 266950 had a related patch set uploaded (by Prtksxna):
Icons: Add attachment icon to Mediawiki theme

https://gerrit.wikimedia.org/r/266950

Just a placeholder patch. Its -1'd and awaiting your icon.

@violetto, do you also happen to have the same icon for the Apex theme?

Were you asking for a different clip icon specifically for Apex? I only maintain one library. :/

@violetto, do you also happen to have the same icon for the Apex theme?

Were you asking for a different clip icon specifically for Apex? I only maintain one library. :/

I guess we can reuse the same one.

on Dropbox as well Design > + Assets > Icons > 4 Current > uniE042 - clip.svg

Change 266950 abandoned by Prtksxna:
Icons: Add attachment icon to Mediawiki theme

Reason:
Adding the icon in I3f68bc instead.

https://gerrit.wikimedia.org/r/266950

Change 265279 had a related patch set uploaded (by Prtksxna):
SelectFileWidget: Show thumbnail when dropTarget is shown

https://gerrit.wikimedia.org/r/265279

Change 265279 merged by jenkins-bot:
SelectFileWidget: Show thumbnail when dropTarget is shown

https://gerrit.wikimedia.org/r/265279

Prtksxna removed a project: Patch-For-Review.
Prtksxna set Security to None.