Page MenuHomePhabricator

Improve behavior of inline comment highlight reticle for block diffs
ClosedPublic

Authored by epriestley on Sep 25 2019, 8:25 PM.
Tags
None
Referenced Files
F18813754: D20835.diff
Mon, Oct 20, 6:50 PM
F18809336: D20835.id.diff
Sun, Oct 19, 1:08 PM
F18806422: D20835.diff
Sat, Oct 18, 7:26 PM
F18790362: D20835.id49666.diff
Wed, Oct 15, 1:45 PM
F18790358: D20835.id49676.diff
Wed, Oct 15, 1:44 PM
F18734061: D20835.id.diff
Sep 30 2025, 10:47 PM
F18705560: D20835.diff
Sep 28 2025, 11:56 AM
F18644964: D20835.id49666.diff
Sep 19 2025, 6:33 AM
Subscribers
None

Details

Summary

Depends on D20834. Ref T13425. After the change from "th" to "td" for accessibility, the algorithm picks which cells it should highlight slightly improperly (it picks too many cells since it can no longer find the line numbers).

Ideally, it would probably highlight only the source content, but there isn't an easy way to do this right now. Settle for an incremental improvement for the moment.

Test Plan

Hovered over line numbers, saw a more accurate highlight area.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable