[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Page MenuHomePhabricator

Newcomer tasks: UI fixes to the Image thumbnail in the Post-edit dialog
Closed, ResolvedPublic

Description

This task tracks design fixes on the image thumbnail element of the post-edit dialog, which was found on both Desktop and Mobile versions.

Actual Desktop
image.png (449×564 px, 64 KB)
Expected
image.png (788×1 px, 190 KB)
Actual Mobile (no image example)
image.png (224×682 px, 17 KB)
Expected
image.png (330×990 px, 23 KB)

Issues to fix:

  • Image container should have border-radius:2px

[ii] Image container size on Desktop should always be 88x88px, and on Mobile 72x72px. even when there is no image.
[iii] When there is no image, the image placeholder icon should appear sized 40x40px centered in the image container with background-color: #EAECF0

Event Timeline

[ii] Image container size on Desktop should always be 88x88px, and on Mobile 72x72px. even when there is no image.

For the placeholder that's easy enough to fix (I forgot that flex can override the constant width). What should happen when there is an image, and it is not square? Should we make it fill the box (ie. smaller dimension of the image equals box size) and center it? Fit the box? Something else?

[ii] Image container size on Desktop should always be 88x88px, and on Mobile 72x72px. even when there is no image.

For the placeholder that's easy enough to fix (I forgot that flex can override the constant width). What should happen when there is an image, and it is not square? Should we make it fill the box (ie. smaller dimension of the image equals box size) and center it? Fit the box? Something else?

Could we re-use the same code (or else the same logic) that is used to show the square thumbnails on mobile search results list?

image.png (1×908 px, 327 KB)

It looks like they apply scale image to fit-height or fit-width depending on whether the image is landscape or portrait by applying .list-thumb.list-thumb-y { background-size: auto 100%; } or .list-thumb.list-thumb-x { background-size: 100% auto; } respectively.

Change 608912 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/extensions/GrowthExperiments@master] Newcomer tasks: UI fixes to the image thumbnail in the post-edit dialog

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GrowthExperiments/ /608912

Yeah, they fill the box and then center the image. Probably when that was written background-size: cover wasn't available in iOS yet; today it's supported well enough for our purposes, I think.

Change 608912 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Newcomer tasks: UI fixes to the image thumbnail in the post-edit dialog

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GrowthExperiments/ /608912

Etonkovidova subscribed.

Checked in betalabs - below is the comparison with production (testwiki wmf.39) - the specs are in place - no issues found.
Notes:

  • the gap between "You've published an edit!" and the post-edit SE card seems bigger than in the mockups
  • there is un-related issue with displaying an image (it is the only available image for the testwiki set of SE article). I did not observe it in betalabs, but will check additionally.

Desktop

betalabsproduction
Screen Shot 2020-07-02 at 1.30.32 PM.png (413×521 px, 57 KB)
Screen Shot 2020-07-02 at 2.21.45 PM.png (500×743 px, 124 KB)
Screen Shot 2020-07-02 at 1.34.04 PM.png (421×530 px, 47 KB)
Screen Shot 2020-07-02 at 2.17.50 PM.png (454×603 px, 62 KB)

Mobile

betalabsproduction
Screen Shot 2020-07-02 at 2.00.32 PM.png (425×409 px, 53 KB)
Screen Shot 2020-07-02 at 2.50.31 PM.png (674×388 px, 111 KB)
Screen Shot 2020-07-02 at 2.01.52 PM.png (458×411 px, 40 KB)
Screen Shot 2020-07-02 at 2.05.17 PM.png (676×384 px, 70 KB)

For mobile the size and background color are according to the specs:

Screen Shot 2020-07-02 at 2.55.02 PM.png (667×368 px, 73 KB)

Thanks, image thumbs look much better now, esp. the placeholder image centering.

image.png (920×1 px, 162 KB)
image.png (1×760 px, 94 KB)

Checked in betalabs - below is the comparison with production (testwiki wmf.39) - the specs are in place - no issues found.
Notes:

  • the gap between "You've published an edit!" and the post-edit SE card seems bigger than in the mockups

Yes, this was filed as T255820 but seems not to have made the cut for current sprint...

  • there is un-related issue with displaying an image (it is the only available image for the testwiki set of SE article). I did not observe it in betalabs, but will check additionally.

Desktop

betalabsproduction
Screen Shot 2020-07-02 at 1.30.32 PM.png (413×521 px, 57 KB)
Screen Shot 2020-07-02 at 2.21.45 PM.png (500×743 px, 124 KB)
Screen Shot 2020-07-02 at 1.34.04 PM.png (421×530 px, 47 KB)
Screen Shot 2020-07-02 at 2.17.50 PM.png (454×603 px, 62 KB)

Mobile

betalabsproduction
Screen Shot 2020-07-02 at 2.00.32 PM.png (425×409 px, 53 KB)
Screen Shot 2020-07-02 at 2.50.31 PM.png (674×388 px, 111 KB)
Screen Shot 2020-07-02 at 2.01.52 PM.png (458×411 px, 40 KB)
Screen Shot 2020-07-02 at 2.05.17 PM.png (676×384 px, 70 KB)

For mobile the size and background color are according to the specs:

Screen Shot 2020-07-02 at 2.55.02 PM.png (667×368 px, 73 KB)