Commit 11681d2
authored
🤖 fix: show old/new line numbers in diffs (#1126)
Aligns diff viewer with GitHub's visual/interaction model:
- **Dual line-number columns** (old/new) to clarify pre- vs post-change
lines
- **Review note formatting** includes both ranges (e.g. `-12-14 +15-17`)
- **Restored +/− indicators** with hover-to-replace review button
(MessageSquare)
- **Deduplicated rendering** via shared `DiffLineGutter` and
`DiffIndicator` components
- **Polished review input** styled to sit within the diff seamlessly,
background matches surrounding line type (add/remove/context)
_Generated with `mux`_1 parent 422ec9c commit 11681d2
File tree
8 files changed
+546
-276
lines changed- src
- browser
- components
- utils/highlighting
- common/types
8 files changed
+546
-276
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
142 | 147 | | |
143 | | - | |
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
148 | | - | |
149 | 152 | | |
150 | | - | |
| 153 | + | |
151 | 154 | | |
152 | 155 | | |
153 | 156 | | |
| |||
245 | 248 | | |
246 | 249 | | |
247 | 250 | | |
248 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
249 | 258 | | |
250 | 259 | | |
251 | 260 | | |
| |||
0 commit comments