Fix/issue 11367 long question UI#17160
Conversation
Implement scrolling constraints for question text to ensure answer options remain visible. Add dynamic height calculation and scrollbar styling to improve UI experience with long questions. - Add comprehensive e2e tests for question scrolling behavior - Implement question text max-height calculation in session-question-dock component - Add CSS scrollbar styling for question text with hover states - Update Storybook with enhanced documentation and test cases
Remove screenshot capture operations from question scrolling e2e tests to improve test reliability and execution time. Replace visual verification with assertions. - Remove screenshot directory creation and file operations - Replace screenshot capture with proper scrolling behavior assertions - Remove console.log statements for cleaner test output - Add scroll height comparison assertions to validate scrolling behavior
To improve test stability and prevent flakiness during UI interactions.
measurement Replace hardcoded height values with actual DOM element measurements to ensure accurate height calculation across different themes and layouts. - Add element caching to improve performance - Replace magic numbers with `getBoundingClientRect()` measurements - Implement debounced resize handler to prevent layout thrashing - Add error handling for measure function - Measure header, progress, and hint elements dynamically
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: ResultsPotential Related PR Found:
Note: The current PR #17160 is the only match for most of the specific searches, indicating this appears to be addressing a unique issue. PR #15253 is the only potentially related PR found that touches the same component area. |
|
If you would like me to implement the fix on the CLI (TUI) as well, please feel free to assign the task to me. At the moment, I am facing some issues with the scrolling behaviour in the TUI using If fixing this is important, could you please share any documentation or references related to scrolling behaviour in the TUI? That would really help me proceed with the implementation. |
Issue for this PR
Closes #11367
Type of change
What does this PR do?
This PR fixes a UI issue where long question text in the session question dock would push answer options off-screen, making them inaccessible to users.
Changes made:
measure()function to dynamically calculate question text max-height200pxminimum space for options--question-text-max-height) for responsive behaviorHow did you verify your code works?
Screenshots / recordings
Before Fix:

After Fix:

2026-03-12.13-27-07.mp4
Detailed Video Demonstration with Responsive Testing – Google Drive
Checklist