Page MenuHomePhabricator

Thumbnails are too small due to background-size for an icon
Closed, ResolvedPublic


Due to background-size: 40px 40px; being set in RelatedArticles styles, thumbnails get displayed at a significantly smaller size than they should be. background-size: 40px 40px; was set so that an icon when a thumbnail doesn’t get loaded was displayed at 2× size, but it unintentionally affected the thumbnails.

Demo / steps to reproduce:

  1. Go toВарга-Катарылькы#footer
  2. Wait for RelatedArticles to load
  3. See this:

Event Timeline

stjn created this task.Aug 2 2019, 1:39 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 2 2019, 1:39 PM

Change 527613 had a related patch set uploaded (by Saint Johann; owner: Saint Johann):
[mediawiki/extensions/RelatedArticles@master] Fix background-size on thumbnails

pmiazga added a subscriber: pmiazga.Aug 6 2019, 5:52 PM

@stjn the proposed solution works, but on pages like Barack Obama it makes thumbnails bit too big, thumbnails get cropped, thus sometimes people faces do not fit into the thumbnail div.

Example before:


Niedzielski added a subscriber: Edtadros.

Merge is still pending and is not ready for QA.

Change 527613 merged by jenkins-bot:
[mediawiki/extensions/RelatedArticles@master] Fix background-size on thumbnails

Volker_E reassigned this task from Niedzielski to stjn.Aug 9 2019, 6:39 PM
Volker_E added a subscriber: Niedzielski.