Skip to content

Text wrapping and Banner fix, fixes #14 and fixes #11 respectively#18

Merged
trintlermint merged 3 commits intomainfrom
text-wrapping
Apr 5, 2026
Merged

Text wrapping and Banner fix, fixes #14 and fixes #11 respectively#18
trintlermint merged 3 commits intomainfrom
text-wrapping

Conversation

@trintlermint
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings April 5, 2026 19:22
@trintlermint trintlermint merged commit f2521d5 into main Apr 5, 2026
4 of 5 checks passed
@trintlermint trintlermint deleted the text-wrapping branch April 5, 2026 19:22
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates several FTXUI screens to improve text wrapping and fix layout/scroll behavior (notably for banner/progress and long choice text), addressing the issues referenced in #14 and #11.

Changes:

  • Replace frame with yframe in multiple scrollable panels to constrain scrolling to vertical only.
  • Use paragraph(... ) | flex for answer/choice rendering in quiz and question-detail screens to enable proper wrapping.
  • Move the quiz progress gauge into the non-scrolling header area so it behaves like a fixed banner element.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/screens/save_confirm.cpp Use yframe for the diff preview panel to keep scrolling vertical.
src/screens/remove_question.cpp Use yframe for the question list panel to constrain scrolling to vertical.
src/screens/quiz.cpp Wrap choice text with paragraph + flex, move progress gauge into header, and use yframe for the scrollable body.
src/screens/quit_confirm.cpp Use yframe for the diff preview panel when quitting with unsaved changes.
src/screens/manual.cpp Use yframe for the manual content panel to keep scrolling vertical and avoid layout issues.
src/screens/list_questions.cpp Use yframe for list/detail panels and wrap choice text in the detail view.
src/screens/edit_choice.cpp Wrap choice text with paragraph + flex and use yframe for the overall scroll region.
src/screens/change_answer.cpp Wrap choice text with paragraph + flex and use yframe for the overall scroll region.
src/screens/add_question.cpp Use yframe for the overall scroll region.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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