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

Fix handling of single font name in theme #7967

Merged
merged 5 commits into from Apr 8, 2024

Conversation

sd109
Copy link
Contributor

@sd109 sd109 commented Apr 8, 2024

Description

Previous check failed because str is an instance of Iterable so was never correctly wrapped in [...]. Instead, providing a single font such as "Arial" would result in a font list of "A, r, i, a, l" in the bundled CSS.

🎯 PRs Should Target Issues

I think this fix is small enough to not require opening an issue, but happy to do so if desired.

Previous check failed because `str` is an instance of Iterable so was never correctly wrapped in `[...]`. Instead, providing a single font such as "Arial" would result in a font list of "A, r, i, a, l" in the bundled CSS.
@gradio-pr-bot
Copy link
Contributor

gradio-pr-bot commented Apr 8, 2024

🪼 branch checks and previews

Name Status URL
Spaces ready! Spaces preview
Website ready! Website preview
🦄 Changes detected! Details

Install Gradio from this PR

pip install https://gradio-builds.s3.amazonaws.com/44b267e6c58ea44a92b2d748cbb81dc98eaf8f12/gradio-4.25.0-py3-none-any.whl

Install Gradio Python Client from this PR

pip install "gradio-client @ git+https://github.com/gradio-app/gradio@44b267e6c58ea44a92b2d748cbb81dc98eaf8f12#subdirectory=client/python"

@sd109 sd109 mentioned this pull request Apr 8, 2024
1 task
@gradio-pr-bot
Copy link
Contributor

gradio-pr-bot commented Apr 8, 2024

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
gradio minor
  • Maintainers can select this checkbox to manually select packages to update.

With the following changelog entry.

Fix handling of single font name in theme

Maintainers or the PR author can modify the PR title to modify this entry.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can update the changelog file directly.

@aliabid94
Copy link
Collaborator

Makes sense, thanks @sd109!

@aliabid94 aliabid94 merged commit 1a7851c into gradio-app:main Apr 8, 2024
7 checks passed
@pngwn pngwn mentioned this pull request Apr 8, 2024
freddyaboulton pushed a commit that referenced this pull request Apr 11, 2024
* Fix handling of single font name in theme

Previous check failed because `str` is an instance of Iterable so was never correctly wrapped in `[...]`. Instead, providing a single font such as "Arial" would result in a font list of "A, r, i, a, l" in the bundled CSS.

* Handle single fonts.Font instance correctly

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants