Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
JohnDuncanScott opened this issue Sep 18, 2024 · 2 comments
Open
1 task done
Labels
bug Something isn't working enhancement New feature or request

Comments

@JohnDuncanScott
Copy link

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? 🔎

  • I have searched and found no 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

@JohnDuncanScott JohnDuncanScott added the bug Something isn't working label Sep 18, 2024
@abidlabs abidlabs added the enhancement New feature or request label Sep 20, 2024
@abidlabs
Copy link
Member

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
Copy link
Author

Thanks, makes sense 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants