Commit d071f10
committed
🤖 Fix code review textarea wrapping
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 position: sticky with left: 0 and width: 100% to remove the
InlineNoteContainer from the grid flow. This constrains it to the
visible scrollport width while keeping it visually positioned below
the selected lines.
Changes:
- InlineNoteContainer: Added position: sticky, left: 0, width: 100%
- NoteTextarea: Added overflow-y: auto, white-space: pre-wrap,
word-wrap: break-word, box-sizing: border-box
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.1 parent dee39f5 commit d071f10
File tree
1 file changed
+11
-1
lines changed1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
336 | 341 | | |
337 | 342 | | |
338 | 343 | | |
339 | 344 | | |
| 345 | + | |
340 | 346 | | |
341 | 347 | | |
342 | 348 | | |
| |||
347 | 353 | | |
348 | 354 | | |
349 | 355 | | |
350 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
351 | 361 | | |
352 | 362 | | |
353 | 363 | | |
| |||
0 commit comments