gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
33.81k stars 2.56k forks source link

Markdown and HTML components don't have scale or max_width args #9384

Open JohnDuncanScott opened 1 month ago

JohnDuncanScott commented 1 month ago

Describe the bug

https://www.gradio.app/guides/controlling-layout -> "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."

This is not true for Markdown and HTML components. I don't know if this applies to others as well.

It's nice to use these as "labels" (bit of text) for various bits of an app. However, the lack of these params means it becomes very difficult to style the app simply (without resorting to CSS, etc.). At the moment Textbox acts as a better "label" component in non-interactive mode, but the styling in non-interactive mode makes it look editable, so that's not great either.

Have you searched existing issues? 🔎

Reproduction

View documentation.

Screenshot

No response

Logs

No response

System Info

Latest version (docs are incorrect and code also shows the params are missing).

Severity

I can work around it

abidlabs commented 1 month ago

Hi @JohnDuncanScott yes we'll add these, in the meantime, you can wrap each element in a gr.Column and set its scale/min_width

JohnDuncanScott commented 1 month ago

Thanks, makes sense 😊