Skip to content

Commit

Permalink
Update 02_controlling-layout.md (#7434)
Browse files Browse the repository at this point in the history
  • Loading branch information
aroffe99 committed Feb 15, 2024
1 parent fb1f6be commit aa0d98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/03_building-with-blocks/02_controlling-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ with gr.Blocks() as demo:

The widths of elements in a Row can be controlled via a combination of `scale` and `min_width` arguments that are present in every Component.

- `scale` is an integer that defines how an element will take up space in a Row. If scale is set to `0`, the element will not expand to take up space. If scale is set to `1` or greater, the element will expand. Multiple elements in a row will expand proportional to their scale. Below, `btn1` will expand twice as much as `btn2`, while `btn0` will not expand at all:
- `scale` is an integer that defines how an element will take up space in a Row. If scale is set to `0`, the element will not expand to take up space. If scale is set to `1` or greater, the element will expand. Multiple elements in a row will expand proportional to their scale. Below, `btn2` will expand twice as much as `btn1`, while `btn0` will not expand at all:

```python
with gr.Blocks() as demo:
Expand Down

0 comments on commit aa0d98c

Please sign in to comment.