# Make chat timeline height estimates width-aware and test them · screen/t3code-personal

[View on GitCafe](https://git.cafe/screen/t3code-personal/commit/2ad2d3e6f55d90da9107c9254423bbcaa9be4898)

Repository: [screen/t3code-personal](https://git.cafe/screen/t3code-personal)

Visibility: public

Requested revision: 2ad2d3e6f55d90da9107c9254423bbcaa9be4898

Requested commit: 2ad2d3e6f55d90da9107c9254423bbcaa9be4898

Commit: 2ad2d3e6f55d90da9107c9254423bbcaa9be4898

Tree: 20882a20be5a43d3a1d6ed8af0169835735c6782

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Make chat timeline height estimates width-aware and test them

- extract `estimateTimelineMessageHeight` into `timelineHeight.ts`
- account for timeline width and explicit newlines when estimating wrapped lines
- re-measure virtualized rows on width changes to fix attachment/message height sizing
- add Vitest coverage for assistant/user wrapping and attachment row height rules

```

## Parents

- [b175d6b2a35f8b6869f981b96ceb20b2db979095](https://git.cafe/screen/t3code-personal/commit/b175d6b2a35f8b6869f981b96ceb20b2db979095?format=markdown)

[Source at this commit](https://git.cafe/screen/t3code-personal/tree/2ad2d3e6f55d90da9107c9254423bbcaa9be4898?format=markdown)
