# gpui: fix \#9931 img object-fit regression \(\#10006\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b1ccead0f66ada772ee2e0e5f76dfdd8b9473340

Requested commit: b1ccead0f66ada772ee2e0e5f76dfdd8b9473340

Commit: b1ccead0f66ada772ee2e0e5f76dfdd8b9473340

Tree: 0f97406c663d754ef37c944d8646759df1ef7cb2

Author: Matthias Grandl

Committer: GitHub

## Message

```
gpui: fix #9931 img object-fit regression (#10006)

PR: #9931 broke image scaling, such that it ignores the object-fit
parameter and instead always scales the image to fit the bounds. This
fixes the regression.
```

## Parents

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

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