Skip to content

fix(ui): adjust line number width calculation and formatting for code block - #600

Merged
haiphucnguyen merged 1 commit into
askimo-ai:mainfrom
larry-ca:feature/fix-code-block-line-numnber-exceed
Aug 4, 2026
Merged

fix(ui): adjust line number width calculation and formatting for code block#600
haiphucnguyen merged 1 commit into
askimo-ai:mainfrom
larry-ca:feature/fix-code-block-line-numnber-exceed

Conversation

@larry-ca

@larry-ca larry-ca commented Aug 4, 2026

Copy link
Copy Markdown
Contributor
  • Calculate line number width dynamically using text measurement to prevent layout overflows.
  • Set softWrap to false for line numbers to ensure consistent rendering.
  • Enforce a minimum width of 32dp to maintain layout stability for files with fewer lines.

- Calculate line number width dynamically using text measurement to prevent layout overflows.
- Set softWrap to false for line numbers to ensure consistent rendering.
- Enforce a minimum width of 32dp to maintain layout stability for files with fewer lines.

@haiphucnguyen haiphucnguyen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @larry-ca !

@haiphucnguyen
haiphucnguyen merged commit dae37ea into askimo-ai:main Aug 4, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants