# commit view: Fix layout shift while loading commit \(\#44548\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/21f7e6a9e6b1e60d196cab72a2bbf402d3c69ae7)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 21f7e6a9e6b1e60d196cab72a2bbf402d3c69ae7

Requested commit: 21f7e6a9e6b1e60d196cab72a2bbf402d3c69ae7

Commit: 21f7e6a9e6b1e60d196cab72a2bbf402d3c69ae7

Tree: 56317baea74a05874c2868e113ead2805e1215cd

Author: Agus Zubiaga

Committer: GitHub

## Message

```
commit view: Fix layout shift while loading commit (#44548)

Fixes a few cases where the commit view would layout shift as the diff
loaded. This was caused by:
- Adding the commit message buffer after all the diff files
- Using the gutter dimensions from the last frame for the avatar spacing

Release Notes:

- commit view: Fix layout shift while loading commit

---------

Co-authored-by: MrSubidubi <dev@bahn.sh>
```

## Parents

- [dd431631b43ce33bd21494122ab74db691fec549](https://git.cafe/gitcafe/zed/commit/dd431631b43ce33bd21494122ab74db691fec549?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/21f7e6a9e6b1e60d196cab72a2bbf402d3c69ae7?format=markdown)
