# gpui: img element object-fit \(\#9393\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b38e3f16ad602a8c5730a3757dce0c54b720b3d1

Requested commit: b38e3f16ad602a8c5730a3757dce0c54b720b3d1

Commit: b38e3f16ad602a8c5730a3757dce0c54b720b3d1

Tree: 2e349fec12a68669e8492ed1b815248a8c6716b3

Author: Matthias Grandl

Committer: GitHub

## Message

```
gpui: img element object-fit (#9393)

Release Notes:

- Added [object-fit
API](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) to the
`img` element. This allows the user to decide how the image is scaled
within the element bounds.
- Fixes corner radius not working as expected on overflowing elements.
```

## Parents

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

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