-
Notifications
You must be signed in to change notification settings - Fork 6.9k
UI tweaks on skills popup. #8250
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
Conversation
d262170 to
de2f176
Compare
|
@codex review again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let wrapped = word_wrap_lines([full_line.clone()], options); | ||
| let max_row_lines = row.max_row_lines.unwrap_or(usize::MAX); | ||
| let wrapped = if wrapped.len() > max_row_lines { | ||
| let mut limited: Vec<Line<'static>> = wrapped.into_iter().take(max_row_lines).collect(); | ||
| if let Some(last) = limited.pop() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cap height calculations when max_row_lines is set
The new max_row_lines truncation is only applied during rendering; measure_rows_height still counts all wrapped lines. Because SkillPopup::calculate_required_height uses measure_rows_height, the popup can still reserve vertical space for the full description even though rendering is capped at two lines, so the change doesn’t actually prevent the popup from growing tall and can leave large empty space / shrink other panes. Consider applying the same max_row_lines cap (and ellipsis logic if needed) inside measure_rows_height so sizing matches rendering. The same mismatch exists in tui2’s selection_popup_common.rs.
Useful? React with 👍 / 👎.
687a434 to
ad79d5e
Compare
|
@codex review again |
|
Codex Review: Didn't find any major issues. Hooray! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
7201434 to
63c3838
Compare
63c3838 to
2feb84d
Compare
2feb84d to
366e20d
Compare
Only display the skill name (not the folder), and truncate the skill description to a maximum of two lines.