# gpui: Make image auto sizing work with Rems too \(\#40089\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 785cb415650c26c02414ec0a78f94614ef8e5078

Requested commit: 785cb415650c26c02414ec0a78f94614ef8e5078

Commit: 785cb415650c26c02414ec0a78f94614ef8e5078

Tree: 0421d3e08857fc578591ec3ed8f39a63c2a456eb

Author: Smit Barmase

Committer: GitHub

## Message

```
gpui: Make image auto sizing work with Rems too (#40089)

Closes #39981

Here both images of the left should be identical to the right, since
180px is the same as 11.25rem.

Before:

<img width="1457" height="847" alt="image"
src="https://github.com/user-attachments/assets/59f571d1-8d66-4f41-b9b0-e9826110cf0c"
/>

After:

<img width="1457" height="626" alt="image"
src="https://github.com/user-attachments/assets/a0c629a9-5916-453a-85a2-b3053ab2e613"
/>

Release Notes:

- N/A
```

## Parents

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

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