# fix\(mobile\): size a chat image's frame before its bytes arrive · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/3aad87849a7c1fee60bec501ea7fcbfff3285851)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 3aad87849a7c1fee60bec501ea7fcbfff3285851

Requested commit: 3aad87849a7c1fee60bec501ea7fcbfff3285851

Commit: 3aad87849a7c1fee60bec501ea7fcbfff3285851

Tree: dd54f280a33e2ba983f629a649596faf5d03fc26

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(mobile): size a chat image's frame before its bytes arrive

The image frame went through three sizes: full width on the first
render, the measured width after its own onLayout, then the decoded
size. Each one changed the row's height after LegendList had already
placed the rows below it, so a screenshot could push the end of the
thread behind the composer or leave the next tool call drawn under it.

The feed now hands markdown its content width through context, so the
placeholder is the right width on the first render, and the server's
image dimensions size the frame exactly before the first byte arrives.
An image the server could not measure still reserves a 16:9 slot.

Co-Authored-By: Claude Code <noreply@anthropic.com>

```

## Parents

- [0c0d4ea243cbc281d399a60588a9419eb9a5a646](https://git.cafe/pingdotgg/t3code/commit/0c0d4ea243cbc281d399a60588a9419eb9a5a646?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/3aad87849a7c1fee60bec501ea7fcbfff3285851?format=markdown)
