Last modified: 2014-10-02 16:25:57 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50996, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48996 - Make images clickable on image description pages
Make images clickable on image description pages
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
Feature requests (Other open bugs)
unspecified
All All
: Low enhancement
: ---
Assigned To: Florian
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-30 19:45 UTC by Carl Fürstenberg
Modified: 2014-10-02 16:25 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Result of gerrit patches (15.52 KB, image/png)
2014-06-05 16:24 UTC, Florian
Details

Description Carl Fürstenberg 2013-05-30 19:45:10 UTC
Per bug 48901

The current setup where the link is still there but nothing happen how many times you tries to click on the image is frustrating.

For a mobile frontend I would suggest implementing a image viewer that loads a perfect sized image when clicking on the image.
Comment 1 Jon 2013-05-31 17:28:42 UTC
The image currently does not look like it can be clicked on the mobile site. 

Why don't we place a transparent icon (magnifying glass maybe?) in the top right corner that when clicked opens the image. I don't believe the entire image needs to be clickable I just think we should do a better job at surfacing the image link. Thoughts?
Comment 2 MZMcBride 2013-06-01 02:34:38 UTC
(In reply to comment #1)
> Why don't we place a transparent icon (magnifying glass maybe?) in the top
> right corner that when clicked opens the image. I don't believe the entire
> image needs to be clickable I just think we should do a better job at
> surfacing the image link. Thoughts?

If the entire image should not be clickable, please _don't wrap it in an anchor element_. Whether this strange and inexplicable HTML output (<a><img /></a>) is the subject of this bug, bug 48901, or a new bug, this really should be addressed.
Comment 3 Jon 2013-06-01 03:35:20 UTC
Agreed.
Comment 4 Gerrit Notification Bot 2014-05-25 03:09:48 UTC
Change 135288 had a related patch set uploaded by Florianschmidtwelzow:
Remove clickable link around image instead of abort click event

https://gerrit.wikimedia.org/r/135288
Comment 5 Florian 2014-06-05 08:32:10 UTC
I agree with Jon (in his comment on gerrit:
Ideally this change should be done in core and in the HTML. I'd rather we didn't introduce such a JavaScript hack. The gain is too small and we are introducing code that could potentially damage styling by changing the HTML structure.)

So i will create a POC in next time in core.
Comment 6 Gerrit Notification Bot 2014-06-05 08:33:08 UTC
Change 135288 abandoned by Florianschmidtwelzow:
Remove clickable link around image instead of abort click event

Reason:
Better to do this in core instead using JavaScript (see comment of Jdlrobson)

https://gerrit.wikimedia.org/r/135288
Comment 7 Gerrit Notification Bot 2014-06-05 16:16:36 UTC
Change 137690 had a related patch set uploaded by Florianschmidtwelzow:
WIP/POC: Add ability to change file page in last minute

https://gerrit.wikimedia.org/r/137690
Comment 8 Gerrit Notification Bot 2014-06-05 16:21:58 UTC
Change 137692 had a related patch set uploaded by Florianschmidtwelzow:
Remove clickable link around image on file page

https://gerrit.wikimedia.org/r/137692
Comment 9 Florian 2014-06-05 16:24:43 UTC
Created attachment 15570 [details]
Result of gerrit patches

Magnifying glass is clickable and points to the original file, image itself isn't clickable.
Comment 10 Florian 2014-06-28 21:52:09 UTC
Hmm, this takes time :) Maybe we can think about to use ThumbnailBeforeProduceHtml in a seperate patch, so we can move the removal of the link around the image on file page to remove the filepage.js, which does this atm: https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/master/javascripts/file/filepage.js

???
Comment 11 Jon 2014-09-30 20:16:06 UTC
Maybe we can remove this link removal now the media viewer is here? This will only effect people visiting the File page.

I think this should still be removed in core (let's create a new bug for that) but let's fix this on the mobile side.
Comment 12 Gerrit Notification Bot 2014-09-30 21:51:41 UTC
Change 163963 had a related patch set uploaded by Florianschmidtwelzow:
Remove link removal on filepages

https://gerrit.wikimedia.org/r/163963
Comment 13 Gerrit Notification Bot 2014-09-30 23:36:15 UTC
Change 163963 merged by jenkins-bot:
Remove link removal on filepages

https://gerrit.wikimedia.org/r/163963
Comment 14 Gerrit Notification Bot 2014-10-02 15:57:25 UTC
Change 137692 abandoned by Jdlrobson:
Remove clickable link around image on file page

Reason:
Since this is linked to on the bug report and not relevant to MobileFrontend any more I'm going to abandon it so I can review stuff you want me to review. (Remember abandon != delete :-) so hope that's okay!)

https://gerrit.wikimedia.org/r/137692
Comment 15 Gerrit Notification Bot 2014-10-02 16:25:57 UTC
Change 137690 abandoned by Florianschmidtwelzow:
Add ability to change file page in last minute

Reason:
per discussion

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links