Page MenuHomePhabricator

Displayed Number in TopPanel is offset for numbers lower than 100
Open, Needs TriagePublic

Description

Currently, the displayed number in the TopPanel of the PagelistWidget is offset to the side for all numbers less than 100.

Screenshot from 2021-03-12 11-34-16.png (103×255 px, 5 KB)

It would be great if we could remove the weird space in between the : and the number.

Documentation

Event Timeline

@Ashutosh2001 Here in TopPanel, data.text in the function setPageData() is being sent the following text <span style="visibility:hidden;">00</span>1`` (for the number 1)... The objective of the task is to remove the hidden zeros and only print the number

@Soda I would like to work on this in case if its still available. Also kindly guide me to the source of this " <span style="visibility:hidden;">00</span>1"

@Anjali_Kumari_41: Hi and thanks for your interest. Please see https://www.mediawiki.org/wiki/New_Developers ; the "Tags" in the sidebar says that this is about the ProofreadPage codebase.

Its still not clear. Please help me with where the source of this text lies <span style="visibility:hidden;">00</span>1`

Its still not clear. Please help me with where the source of this text lies <span style="visibility:hidden;">00</span>1`

That particular HTML snippet is being extracted from the raw pagelist HTML being processed at PagelistInputWidget.Model.js and is being passed as data.text to the above-mentioned function.

Not sure, how that's relevant to the task though. It's basically about processing the HTML once it's inside the function.

Hi @Ashutosh2001,
Are you still working on this issue?

Aklapper added a subscriber: Ashutosh2001.

@Ashutosh2001: I am resetting the assignee of this task because there has not been progress lately (please correct me if I am wrong!). Resetting the assignee avoids the impression that somebody is already working on this task. It also allows others to potentially work towards fixing this task. Please claim this task again when you plan to work on it (via Add Action...Assign / Claim in the dropdown menu) - it would be welcome. Thanks for your understanding!