h2oai / h2oai/wave

Add `flex-grow`/`flex-shrink` option to components within `ui.inline`

Open
#2,228 0 comments 0 reactions 0 assignees View on GitHub
feature ui
Dominant language
Python
Stars
4.3k
Forks
371
Avg merge
26d 1h
Merged PRs (30d)
1

Description

#### Is your feature request related to a problem? Please describe

In v0.22.0, it was possible to allow components to fill remaining space within `ui.inline` by setting `width="100%"`. However, in v1.0.0, settings `width="100%"` sets the widget to the same size of the parent (`ui.inline`).

#### Describe the solution you'd like

Some option that either gives separate options for flex-grow/flex-shink (e.g.: `flex-grow=true`), or an option to specify flex options within the element (e.g.: `flex="1 1 0"` or `flex="grow"`). Or, a parameter to add custom inline css (e.g.: `style="flex: 1 1 0;"`.

#### Describe alternatives you've considered

In simple scenarios, like two elements, setting `width="50%"` would suffice. But this becomes more problematic when some elements can change in size but some do not within a `ui.inline` component.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.