Page MenuHomePhabricator

SVG toolbar icons cropped under "Listings" on Portuguese Wikivoyage in WikiEditor (SVG files rendered in bigger size, so only part of them being displayed)
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:

there is a problem in the interface: when one opens the source code editor, there are some links in the taskbar to add the common templates automatically, but they appear, today, disfigured and it is not possible to understand their functions, can someone help? or where I can get help on this?

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

https://ibb.co/M8grrFg

Event Timeline

Aklapper added a subscriber: Kizule.

(@Kizule: This is the WikiEditor toolbar and not in the MediaWiki core codebase itself - see https://www.mediawiki.org/wiki/Editor for all of them... :)

Aklapper renamed this task from Problems with the WikiVoyage.pt to Distorted SVG items for "Listings" on Portuguese Wikivoyage in WikiEditor toolbar.May 25 2021, 7:42 AM
Aklapper updated the task description. (Show Details)
Aklapper removed a subscriber: Kizule.

I could reproduce in Firefox 88 and Chrome 90, so it's not related to browser rendering engines.
And I cannot reproduce on English Wikivoyage.

Screenshot from 2021-05-25 09-42-47.png (482×978 px, 96 KB)

The toolbar loads the SVG files (not any PNG thumbnails) as background images.
These SVG files themselves render fine when opened separately from their URL.

Manually increasing the CSS values of width and height for .tool-button, it seems that the SVG file rendering ignores the size request, so we only see a small part of the SVG file being rendered:

Screenshot from 2021-05-25 10-19-39.png (657×1 px, 304 KB)

Aklapper renamed this task from Distorted SVG items for "Listings" on Portuguese Wikivoyage in WikiEditor toolbar to SVG toolbar icons cropped under "Listings" on Portuguese Wikivoyage in WikiEditor (SVG files rendered in bigger size, so only part of them being displayed).May 25 2021, 8:23 AM

Looking at https://pt.wikivoyage.org/wiki/MediaWiki:Common.js and its customizeToolbar code and comparing to https://el.wikivoyage.org/wiki/MediaWiki:Listings.js or https://en.wikivoyage.org/wiki/MediaWiki:Common.js , those other sites instead load the PNG thumbnail versions with 22px size, instead of the SVG files (with no size definition) themselves.

@felipedafonseca Hi! I have already asked a local administrator (DARIO SEVERI) to correct the problem. Please report other issues here