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)> {
|
fn tailwind_lengths() -> Vec<(&'static str, TokenStream2)> {
|
||||||
vec![
|
vec![
|
||||||
("0", quote! { pixels(0.) }),
|
("0", quote! { pixels(0.) }),
|
||||||
|
("0p5", quote! { rems(0.125) }),
|
||||||
("1", quote! { rems(0.25) }),
|
("1", quote! { rems(0.25) }),
|
||||||
|
("1p5", quote! { rems(0.375) }),
|
||||||
("2", quote! { rems(0.5) }),
|
("2", quote! { rems(0.5) }),
|
||||||
|
("2p5", quote! { rems(0.625) }),
|
||||||
("3", quote! { rems(0.75) }),
|
("3", quote! { rems(0.75) }),
|
||||||
|
("3p5", quote! { rems(0.875) }),
|
||||||
("4", quote! { rems(1.) }),
|
("4", quote! { rems(1.) }),
|
||||||
("5", quote! { rems(1.25) }),
|
("5", quote! { rems(1.25) }),
|
||||||
("6", quote! { rems(1.5) }),
|
("6", quote! { rems(1.5) }),
|
||||||
|
|
|
@ -128,8 +128,8 @@ impl<V: 'static> CollabPanelElement<V> {
|
||||||
.text_sm()
|
.text_sm()
|
||||||
.child(
|
.child(
|
||||||
div()
|
div()
|
||||||
.w_4()
|
.w_3p5()
|
||||||
.h_4()
|
.h_3p5()
|
||||||
.fill(theme.middle.negative.default.foreground),
|
.fill(theme.middle.negative.default.foreground),
|
||||||
)
|
)
|
||||||
.child("maxbrunsfeld"),
|
.child("maxbrunsfeld"),
|
||||||
|
@ -142,8 +142,8 @@ impl<V: 'static> CollabPanelElement<V> {
|
||||||
.items_center()
|
.items_center()
|
||||||
.child(
|
.child(
|
||||||
div()
|
div()
|
||||||
.w_3_5()
|
.w_4()
|
||||||
.h_3_5()
|
.h_4()
|
||||||
.fill(theme.middle.negative.default.foreground),
|
.fill(theme.middle.negative.default.foreground),
|
||||||
)
|
)
|
||||||
.child("i"),
|
.child("i"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue