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

Bug: Playground issue, css or design issue may be #7015

Closed
sankarbiswas07 opened this issue Jan 3, 2025 · 2 comments
Closed

Bug: Playground issue, css or design issue may be #7015

sankarbiswas07 opened this issue Jan 3, 2025 · 2 comments

Comments

@sankarbiswas07
Copy link

sankarbiswas07 commented Jan 3, 2025

When you have a long paragraph/comment/ code line in the code block, the line comes into the next line, and the line number shows wrong and the design break

Lexical version: 0.22.0

Steps To Reproduce

  1. add the code block. have one or two lengthy code line/ comment or somthing So that the line rbeaks into next line
  2. the line number shows wrong

Attached screen shot:

Screenshot 2025-01-03 at 6 09 58 PM

@etrepum
Copy link
Collaborator

etrepum commented Jan 3, 2025

The line numbering in code highlight blocks doesn't really have any compensation for wrapped lines, it's a very naive implementation. See updateCodeGutter, the data-gutter attribute, and the related CSS.

@etrepum
Copy link
Collaborator

etrepum commented Jan 5, 2025

Duplicate of #4361

@etrepum etrepum marked this as a duplicate of #4361 Jan 5, 2025
@etrepum etrepum closed this as not planned Won't fix, can't repro, duplicate, stale Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants