# gpui: Add \`min_size\` and \`max_size\` style methods \(\#47775\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 40468ed651bacec6492726c94fe8125a1ca02927

Requested commit: 40468ed651bacec6492726c94fe8125a1ca02927

Commit: 40468ed651bacec6492726c94fe8125a1ca02927

Tree: bf128445f5f480c8704cc01513d3fc9a3965fa9c

Author: Danilo Leal

Committer: GitHub

## Message

```
gpui: Add `min_size` and `max_size` style methods (#47775)

The same way you can use `size` when width and height have the same
value, it should also be possible to write `min_size` and `max_size`.
This PR adds these two methods, which are also supported in Tailwind
(but not documented in v4, surprisingly!).

Release Notes:

- N/A
```

## Parents

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

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