Commit 43eb4cf
app: wrap enriched runs in a View — stops sub-pixel height creep; gap-based segment spacing
With EnrichedMarkdownText as a direct flex child of the segment column,
repeated layout passes (e.g. swiping a sibling code block's horizontal
ScrollView) inflate its measured height ~0.5px per pass, visible as growing
blank space inside the message. Root cause is upstream: with
streamingAnimation enabled, enriched's measureContent fast path returns the
live view.bounds — the PREVIOUS layout's pixel-grid-rounded output — as the
next measurement input (ShadowMeasurementUtils.h), a measure→round→remeasure
feedback loop. A plain View wrapper stabilizes the node's constraints so
Yoga stops re-invoking the measure, breaking the loop. A/B-verified on
device; TailRunSegment gets the same wrapper for when remend goes live.
Segment spacing also moves from per-code-block first/last margins to a
single gap on the container — between-segments only, so edge code blocks
stay flush for free and the streaming isLast flip re-render goes away.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 2c9532e commit 43eb4cf
1 file changed
Lines changed: 23 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
57 | 67 | | |
58 | 68 | | |
59 | | - | |
| 69 | + | |
| 70 | + | |
60 | 71 | | |
61 | 72 | | |
62 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
63 | 78 | | |
64 | 79 | | |
65 | 80 | | |
| |||
101 | 116 | | |
102 | 117 | | |
103 | 118 | | |
104 | | - | |
105 | | - | |
106 | 119 | | |
107 | 120 | | |
108 | 121 | | |
109 | 122 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | 123 | | |
118 | 124 | | |
119 | 125 | | |
| |||
131 | 137 | | |
132 | 138 | | |
133 | 139 | | |
134 | | - | |
135 | | - | |
136 | | - | |
| 140 | + | |
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
| |||
198 | 202 | | |
199 | 203 | | |
200 | 204 | | |
201 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
202 | 209 | | |
203 | 210 | | |
204 | 211 | | |
205 | 212 | | |
206 | 213 | | |
207 | 214 | | |
208 | 215 | | |
209 | | - | |
210 | | - | |
211 | 216 | | |
212 | 217 | | |
213 | 218 | | |
| |||
0 commit comments