zed/crates/ui2
Marshall Bowers 75c1f0e997
Add w_vw and h_vh to StyledExt for setting sizes in viewport units (#3600)
This PR adds `w_vw` and `h_vh` methods to `StyledExt`.

These methods are the same as their `w` and `h` counterparts, but
operate in viewport units, giving us the equivalent of `vw` and `vh` in
CSS.

You can see them in action in this story:

```
cargo run -p storybook2 -- components/viewport_units
```

Release Notes:

- N/A
2023-12-11 18:19:11 -05:00
..
docs WIP: Work toward eliminating Component trait 2023-11-18 00:03:23 -07:00
src Add w_vw and h_vh to StyledExt for setting sizes in viewport units (#3600) 2023-12-11 18:19:11 -05:00
Cargo.toml ui2: Reference theme2 and settings2 crates without the 2 (#3424) 2023-11-28 15:30:29 -05:00