| ... | @@ -378,7 +378,7 @@ function findTaskListMarkerOffset(markdown: string, listItemStart: number): numb | ... | @@ -378,7 +378,7 @@ function findTaskListMarkerOffset(markdown: string, listItemStart: number): numb |
| 378 | * The default `1.25rem` marker gutter (`.chat-markdown ol`) fits one-character | 378 | * The default `1.25rem` marker gutter (`.chat-markdown ol`) fits one-character |
| 379 | * markers. Wider markers can extend past it and get clipped by a collapsed | 379 | * markers. Wider markers can extend past it and get clipped by a collapsed |
| 380 | * message's overflow. Widen the gutter to fit the widest marker, including a | 380 | * message's overflow. Widen the gutter to fit the widest marker, including a |
| 381 | * negative marker's minus sign. | 381 | * negative marker's minus sign, the period, and the trailing space. |
| 382 | */ | 382 | */ |
| 383 | function orderedListGutterStyle( | 383 | function orderedListGutterStyle( |
| 384 | itemCount: number, | 384 | itemCount: number, |
| ... | @@ -389,7 +389,7 @@ function orderedListGutterStyle( | ... | @@ -389,7 +389,7 @@ function orderedListGutterStyle( |
| 389 | const lastNumber = firstNumber + Math.max(itemCount - 1, 0); | 389 | const lastNumber = firstNumber + Math.max(itemCount - 1, 0); |
| 390 | const markerWidth = Math.max(String(firstNumber).length, String(lastNumber).length); | 390 | const markerWidth = Math.max(String(firstNumber).length, String(lastNumber).length); |
| 391 | if (markerWidth <= 1) return undefined; | 391 | if (markerWidth <= 1) return undefined; |
| 392 | return { "--list-gutter": `${markerWidth + 1}ch` }; | 392 | return { "--list-gutter": `${markerWidth + 2}ch` }; |
| 393 | } | 393 | } |
| 394 | | 394 | |
| 395 | type MarkdownImageHastNode = { | 395 | type MarkdownImageHastNode = { |