TheDJ created this task.
TheDJ added projects: Desktop Improvements (Vector 2022), Wikidata-Page-Banner.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  Original report: 
https://en.wikivoyage.org/wiki/Wikivoyage:Travellers%27_pub#Shrunk_banners
  
  **Steps to replicate the issue** (include links if applicable):
  
  - https://en.wikivoyage.org/wiki/France
  
  **What happens?**:
  
  Bug 1, for all users: There is a lot of space before the banner.
  
  Bug 2, for all users: The items in de ToC are pretty small and hard to read
  
  Bug 3, for Safari users. The banner seems to be only 20% of the required 
height
  
  All of this has to do with modifications that desktop improvements has made.
  
  **Causes**
  
  Bug 1: The `vector-body-before-content` is a display:block and therefore 
pushes the banner down.
  
  Bug 2: The font-size of contentSub  is overridden from 100% to 84%.
  
  Bug 3: The font-size change somehow seems to trigger a subpixel sizing bug in 
Safari. The width of the image is set to 100% and height to auto, yet with the 
font size change, it seems it rounds the image dimensions up to a fraction of a 
pixel. This causes the image to be larger than its container (this should not 
be possible, it's clearly a safari bug). Because the image is bigger than the 
container,  it then triggers portrait detection 
<https://github.com/wikimedia/mediawiki-extensions-WikidataPageBanner/blob/2dc890f02ec2b66311717029569a55cc78da6e30/resources/ext.WikidataPageBanner.positionBanner/ext.WikidataPageBanner.positionBanner.js#L80>,
 which in turn sets a margin-top, that causes half the picture to become way to 
small vertically.

TASK DETAIL
  https://phabricator.wikimedia.org/T336264

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: TheDJ
Cc: TheDJ, Aklapper, JCW555, hnijhuis, Patafisik_WMF, Selby, Iniquity, Agabi10, 
Wikidata-bugs, Lydia_Pintscher
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to