Repository navigation
Conversation
A question option carries the sentence that makes it worth picking, but both list-item rows drew the title and subtitle on one line, so anything past a phone's width ended in an ellipsis. The question body already scrolls, so let the option's title take three lines and its description five, while every other list keeps one line each.
|
Thank you for reporting this, @khativari, and for the clear screenshot. You were right about the bug. We're fixing it in #1093 with our own implementation. It shows the full label and description instead of capping them at 3 and 5 lines, and keeps the selection control beside the first line. That PR credits you as the reporter. If you'd like to be listed as a co-author, please sign the CLA before #1093 merges and we'll add you. We'll close this PR once it lands. |
|
Thanks again for finding this, @khativari. The fix is now on Your report and screenshot showed us the problem, and #1093 credits you as the reporter. We wrote our own version so we could change a few things:
We checked it on both platforms with long, multilingual and very long questions. Thank you for taking the time to report it and propose a fix. |
Summary
A question option carries the sentence that makes it worth picking, but on a phone both were cut to
one line each. The screenshot below shows the current behaviour: a description stops after some
forty characters ("Правлю исходники, собираю debug-APK (…") and the rest of the sentence, the part
that tells the options apart, is gone. Forced line breaks cannot help, because the row draws a
single line per field, so anything past the screen width is lost.
The list item now lets a caller say how many lines a title and a subtitle may take, and the question
composer uses that: a label takes up to 3 lines and a description up to 5. The question body already
scrolls when it outgrows the panel (
heightIn(max = questionBodyMaxHeight())withverticalScrollon Android, a
ScrollViewon iOS), so taller cards cost scroll, not hidden text.OpenCodeListItemgetstitleMaxLines/subtitleMaxLines(iOStitleLineLimit/subtitleLineLimit), both defaulting to 1, so every other list keeps its single line.subtitle previews the answer being typed.
Screenshots
Before: attached in the conversation below — OpenCode Mobile 1.5.0 from Google Play, Android,
against an opencode server: a question with three options, every description ending in an ellipsis.
The same single-line row is still on
main.After: not captured yet. There is no Android SDK or Xcode on the machine this branch was prepared on,
so it was not built or run; the first build of it is the maintainer-run check.
Checks
build of this branch.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.