Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numbered lists in sidebars cut off the left side of numbers (especially for >1 digit numbers) #1301

Open
MHLoppy opened this issue Dec 17, 2024 · 1 comment
Labels
bug Something isn't working frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end

Comments

@MHLoppy
Copy link

MHLoppy commented Dec 17, 2024

Describe the bug
Ordered lists (<ol> / <li> HTML tags) in sidebars appear to cut off the left-most section of text. For single-digit numbers this is mostly aesthetic and the numbers are still highly legible because only a couple (?) of pixels get cut off at normal font sizes, but for numbers of 10+, the entire non-last digit risks getting cut off.

This seems to happen on both desktop and mobile regardless in multiple browsers.

On which Mbin instance did you find the bug?
Fedia.io ( https://fedia.io )

Which Mbin version was running on the instance?
1.7.3

To Reproduce
Steps to reproduce the behavior:

  1. Go to a magazine/community that uses numbered lists in its sidebar e.g., https://fedia.io/m/[email protected] .
  2. View sidebar.
  3. Observe that the left side of the numbers in the rules list is cut off, most notably that rule "10" displays as rule "0" and rule "11" displays as rule "1".

Expected behavior
I would expect that the starting position of text shifts to the right to fully accommodate numbered lists.

Screenshots
(from Firefox on desktop)
image

Note that the missing numbers are still there (just hidden), as demonstrated by adding some arbitrary margin to the element:
image

Desktop (please complete the following information):

  • OS: Windows 10 Pro 22H2 (build 19045.5247)
  • Browsers: Firefox 133.0.3, also tested on Brave 1.73.101

Smartphone (please complete the following information):

  • Device: Asus Zenfone 9
  • OS: Android 14
  • Browser: Firefox (mobile) 133.0.3

Additional context
N/A

@MHLoppy MHLoppy added the bug Something isn't working label Dec 17, 2024
@jac-collab
Copy link

It seems like a CSS issue with the padding/margin or overflow settings for ordered lists in sidebars. Adjusting the list item's padding or ensuring proper text alignment should resolve it. This should be checked across different screen sizes and browsers to maintain consistency.

@garrettw garrettw added the frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end
Projects
None yet
Development

No branches or pull requests

3 participants