Skip to content

feat(desktop): add expandable option descriptions in session question dock#15253

Open
OpeOginni wants to merge 3 commits intoanomalyco:devfrom
OpeOginni:fix/desktop-questions-long-desc
Open

feat(desktop): add expandable option descriptions in session question dock#15253
OpeOginni wants to merge 3 commits intoanomalyco:devfrom
OpeOginni:fix/desktop-questions-long-desc

Conversation

@OpeOginni
Copy link
Contributor

  • Implemented functionality to expand and collapse option descriptions.
  • Added state management for expanded and clipped descriptions.
  • Updated UI to reflect changes with new toggle buttons for read more/less.
  • Enhanced CSS for better visibility of expanded descriptions.
  • Added internationalization support for new text strings in multiple languages.

Issue for this PR

Closes #14924

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Added a Read more / Read less toggle for long option descriptions in the Session Question Dock.
The toggle now shows only when the description is actually truncated in the current view, so it works dynamically based on the screen size as well
Also added localized text for ui.question.readMore and ui.question.readLess in the UI i18n files.

How did you verify your code works?

Tested on my dev run of the desktop app

Screenshots / recordings

Uploading Screen Recording 2026-02-26 at 17.15.14.mov…

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

… dock

- Implemented functionality to expand and collapse option descriptions.
- Added state management for expanded and clipped descriptions.
- Updated UI to reflect changes with new toggle buttons for read more/less.
- Enhanced CSS for better visibility of expanded descriptions.
- Added internationalization support for new text strings in multiple languages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Question tool UI in the OpenCode Desktop hides longer descriptions

1 participant