Commit cd91de5
committed
fix(web): keep external link labels breakable
Review follow-up on the #8807 port. Routing agent images through the expanded
preview wrapped an anchor's children in MarkdownLinkContext, which made
MarkdownExternalLinkContent's first child an element rather than the leading
text string it splits with <wbr/>. External links mixing leading text with
inline formatting rendered their whole label as one whitespace-nowrap run and
overflowed the chat column. The provider now wraps the result instead of the
children. The defect is upstream's too.1 parent 723f1ea commit cd91de5
2 files changed
Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
335 | 345 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2229 | 2229 | | |
2230 | 2230 | | |
2231 | 2231 | | |
2232 | | - | |
2233 | | - | |
2234 | | - | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
2235 | 2241 | | |
2236 | 2242 | | |
2237 | 2243 | | |
| |||
0 commit comments