Hello, why you are using `flex-grow` for weight, i...
# kobweb
m
Hello, why you are using
flex-grow
for weight, it looks like
flex
is closer to Compose
weight
Most of the time, I find myself changing
weight
to
flex
to have the correct behavior.
d
Sorry I don't understand the question. Maybe you can be more specific? Fundamentally, Kobweb is a wrapper around CSS APIs. Maybe
weight
is a Jetpack Compose concept?
m
When I use
weight
modifier in kobweb, it gets rendered as
flex-grow
css property but I think it would be better if it gets rendered as
flex
css property
d
Ah apologies I see what you're saying
Can you give me a specific example of what you're doing?
Sorry, been under water for so long. Meant to dig this up earlier. But just to make sure we're on the same page, check out: https://developer.mozilla.org/en-US/docs/Web/CSS/flex
flex: 1
is a shortcut for
flex-grow: 1