mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 11:01:54 +00:00
Add fraction sizes for tailwind lengths
This commit is contained in:
parent
5a9c76e080
commit
7f85780c78
2 changed files with 8 additions and 4 deletions
|
@ -62,9 +62,13 @@ fn generate_methods() -> Vec<TokenStream2> {
|
|||
fn tailwind_lengths() -> Vec<(&'static str, TokenStream2)> {
|
||||
vec![
|
||||
("0", quote! { pixels(0.) }),
|
||||
("0p5", quote! { rems(0.125) }),
|
||||
("1", quote! { rems(0.25) }),
|
||||
("1p5", quote! { rems(0.375) }),
|
||||
("2", quote! { rems(0.5) }),
|
||||
("2p5", quote! { rems(0.625) }),
|
||||
("3", quote! { rems(0.75) }),
|
||||
("3p5", quote! { rems(0.875) }),
|
||||
("4", quote! { rems(1.) }),
|
||||
("5", quote! { rems(1.25) }),
|
||||
("6", quote! { rems(1.5) }),
|
||||
|
|
|
@ -128,8 +128,8 @@ impl<V: 'static> CollabPanelElement<V> {
|
|||
.text_sm()
|
||||
.child(
|
||||
div()
|
||||
.w_4()
|
||||
.h_4()
|
||||
.w_3p5()
|
||||
.h_3p5()
|
||||
.fill(theme.middle.negative.default.foreground),
|
||||
)
|
||||
.child("maxbrunsfeld"),
|
||||
|
@ -142,8 +142,8 @@ impl<V: 'static> CollabPanelElement<V> {
|
|||
.items_center()
|
||||
.child(
|
||||
div()
|
||||
.w_3_5()
|
||||
.h_3_5()
|
||||
.w_4()
|
||||
.h_4()
|
||||
.fill(theme.middle.negative.default.foreground),
|
||||
)
|
||||
.child("i"),
|
||||
|
|
Loading…
Reference in a new issue