You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The review note textarea was extending horizontally beyond the visible
viewport because it was inheriting the width of the scrollable content
area (which expands for long diff lines) rather than the visible
scrollport width.
Solution:
Use ResizeObserver to dynamically set InlineNoteContainer width to
match the clientWidth of the scrollable parent (DiffContainer). This
constrains the textarea to the visible viewport while allowing the diff
lines to scroll horizontally as before.
Changes:
- NoteTextarea: Added overflow-y: auto, white-space: pre-wrap,
word-wrap: break-word, box-sizing: border-box
- ReviewNoteInput: Added ResizeObserver to track scrollParent width
- InlineNoteContainer: Width set dynamically via JavaScript
Result:
Text in the review note input wraps within the visible viewport
boundaries. Long diff lines can still scroll horizontally, but the
textarea respects the visible container width.
placeholder="Add a review note to chat (Shift-click + button to select range, Enter to submit, Shift+Enter for newline, Esc to cancel)
j, k to iterate through hunks, m to toggle as read"
0 commit comments