lemmy-ui icon indicating copy to clipboard operation
lemmy-ui copied to clipboard

Large numbered list numbers escape comment content box

Open Atemu opened this issue 1 year ago • 0 comments

Requirements

  • [X] This is a bug report, and if not, please post to https://lemmy.ml/c/lemmy_support instead.
  • [X] Please check to see if this issue already exists.
  • [X] It's a single bug. Do not report multiple bugs in one issue.
  • [X] It's a frontend issue, not a backend issue; Otherwise please create an issue on the backend repo instead.

Summary

Writing a large number infront of a . to create a numbered list item causes that number to escape the bounds of a comment when rendered.

First noticed here: https://lemmy.ml/comment/6421319

You can take it to the extreme:

image

This only happens to numbers <=999999999 (999_999_999).

Steps to Reproduce

  1. Enter 239828. foo into comment box
  2. Render it via preview or commenting

Technical Details

Firefox 120.0.1 on macOS

Lemmy Instance Version

UI: v0.19.0-rc.11-16-geae5c40a BE: 0.19.0-rc.12

Lemmy Instance URL

lemmy.ml

Atemu avatar Dec 06 '23 13:12 Atemu