Skip to content

fix: prevent text overflow in chapter and module name labels - #1850

Closed
ankitrajchoudhari wants to merge 2 commits into
freeCodeCamp:mainfrom
ankitrajchoudhari:fix/chapter-text-overflow
Closed

ankitrajchoudhari wants to merge 2 commits into
freeCodeCamp:mainfrom
ankitrajchoudhari:fix/chapter-text-overflow

Conversation

@ankitrajchoudhari

Copy link
Copy Markdown

Long localized strings (e.g. in the A1 Professional Spanish
Certification) can overflow the chapter and module name Text
widgets, causing misaligned layout on some devices.

Added softWrap, overflow: TextOverflow.ellipsis, and maxLines
to both Text widgets in chapter_view.dart so long names wrap
gracefully instead of overflowing.

Closes #1731

Signed-off-by: Ankit Raj Choudhari <233086850+ankitrajchoudhari@users.noreply.github.com>
Signed-off-by: Ankit Raj Choudhari <233086850+ankitrajchoudhari@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 8, 2026 20:21
@ankitrajchoudhari
ankitrajchoudhari requested a review from a team as a code owner October 8, 2026 20:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@huyenltnguyen huyenltnguyen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi there, thank you for the PR.

Please include a screenshot of the change to help verify that it was tested locally.

Comment on lines +28 to +29
node-version: [26]
pnpm-version: [12]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please remove these changes. They are not relevant.

@huyenltnguyen huyenltnguyen added the status: waiting update Applied to Issue/PR if a maintainer/reviewer has left a feedback and follow up is needed from OP label Oct 8, 2026
@huyenltnguyen

Copy link
Copy Markdown
Member

Actually, I don't think this PR addresses the right issue. The linked issue is about text being indented, not overflow.

@ankitrajchoudhari

Copy link
Copy Markdown
Author

You're right, thank you for the correction — I misread the issue. It's about the inconsistent indentation and spacing of the description text, not overflow. Apologies for the mix-up. I'll take a proper look at the actual indentation behaviour before proposing anything further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting update Applied to Issue/PR if a maintainer/reviewer has left a feedback and follow up is needed from OP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text alignment issue in mobile app – A1 Professional Spanish Certification

3 participants