-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The Button component is ignoring the scale argument. This was regressed somewhere in v6.
Side note: It is not clear why buttons break out of the form container. There is no way to make a form container and the variants for row/col do not have a border. It kind of made sense in v4, when the button expanded vertically, but that was regressed somewhere in v5.
Have you searched existing issues? 🔎
- I have searched and found no existing issues
Reproduction
import gradio as gr
with gr.Blocks() as demo:
with gr.Row():
gr.Textbox("foo", scale=1)
gr.Textbox("bar", scale=0)
with gr.Row():
gr.Textbox("foo", scale=1)
gr.Button("bar", scale=0)
demo.launch()Screenshot
v6.5.1
v5.50.0
v4.44.1
Logs
System Info
Gradio Environment Information:
------------------------------
Operating System: Darwin
gradio version: 6.5.1
gradio_client version: 2.0.3
------------------------------------------------
gradio dependencies in your environment:
aiofiles: 24.1.0
anyio: 4.12.1
audioop-lts: 0.2.2
brotli: 1.1.0
fastapi: 0.119.0
ffmpy: 1.0.0
gradio-client: 2.0.3
groovy: 0.1.2
httpx: 0.28.1
huggingface-hub: 0.35.3
jinja2: 3.1.6
markupsafe: 3.0.3
numpy: 2.3.3
orjson: 3.11.4
packaging: 25.0
pandas: 2.3.3
pillow: 12.1.1
pydantic: 2.12.3
pydub: 0.25.1
python-multipart: 0.0.22
pytz: 2025.2
pyyaml: 6.0.3
safehttpx: 0.1.7
semantic-version: 2.10.0
starlette: 0.52.1
tomlkit: 0.12.0
typer: 0.20.0
typing-extensions: 4.15.0
uvicorn: 0.38.0
mcp is not installed.
pydantic: 2.12.3
authlib is not installed.
itsdangerous: 2.2.0
gradio_client dependencies in your environment:
fsspec: 2026.2.0
httpx: 0.28.1
huggingface-hub: 0.35.3
packaging: 25.0
typing-extensions: 4.15.0Severity
I can work around it
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working