# Add \`WithRemSize\` element \(\#11928\) · gitcafe/zed

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

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

Visibility: public

Requested revision: fdadbc71744907c109bae68e4a6796727674ed35

Requested commit: fdadbc71744907c109bae68e4a6796727674ed35

Commit: fdadbc71744907c109bae68e4a6796727674ed35

Tree: 3c4c7a8c82cb23c7d51dcdb19cf1c2e4fada9475

Author: Marshall Bowers

Committer: GitHub

## Message

```
Add `WithRemSize` element (#11928)

This PR adds a new `WithRemSize` element to the `ui` crate.

This element can be used to create an element tree that has a different
rem size than the base window.

`WithRemSize` can be nested, allowing for subtrees that have a different
rem size than their parent and their children.

<img width="912" alt="Screenshot 2024-05-16 at 2 25 28 PM"
src="https://github.com/zed-industries/zed/assets/1486634/f599cd9f-c101-496b-93e8-06e570fbf74f">

Release Notes:

- N/A
```

## Parents

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

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