# gpui: Add \`grid_rows_min_content\` and \`grid_rows_max_content\` methods \(\#61837\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5ccbbbd88f74a6283241db699ea00cb14f7e5a7f

Requested commit: 5ccbbbd88f74a6283241db699ea00cb14f7e5a7f

Commit: 5ccbbbd88f74a6283241db699ea00cb14f7e5a7f

Tree: 7e7e6c5fb22c8e2817df55c5a632b2a5285ac2da

Author: Bowen Xu

Committer: GitHub

## Message

```
gpui: Add `grid_rows_min_content` and `grid_rows_max_content` methods (#61837)

# Objective

- GPUI provides `grid_cols_min_content()` and `grid_cols_max_content()`,
but the `grid_rows_*_content()` methods are missing.

## Solution

- This PR adds the `grid_rows_min_content()` and
`grid_rows_max_content()` methods, and renames the enum
`TemplateColumnMinSize` to `GridTemplateMinSize`.

## Testing

- I have tested locally.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable


Release Notes:

- N/A
```

## Parents

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

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