zed/crates/storybook2
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 2023-09-20 14:32:55 -06: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
build.rs WIP 2023-09-20 14:32:55 -06:00
Cargo.lock WIP 2023-09-20 14:32:55 -06:00
Cargo.toml Extract Story into separate story crate (#3378) 2023-11-21 13:42:00 -05:00