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 the embedded Lite apps in the docs #10488

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

whitphx
Copy link
Member

@whitphx whitphx commented Feb 3, 2025

Description

The embedded <gradio-lite> apps' style is broken as below, and 6bb14ca fixes it.
CleanShot 2025-02-03 at 16 43 42@2x

2178f48 is a related refactoring: I found that each component is loading lite.css in each Svelte file (and 6bb14ca did the same in the document markdown file), so lite.js should also be loaded by each component, instead of being loaded globally in +layout.svelte.

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Feb 3, 2025

🪼 branch checks and previews

Name Status URL
Spaces ready! Spaces preview
Website ready! Website preview
Storybook ready! Storybook preview
🦄 Changes detecting...

Install Gradio from this PR

pip install https://gradio-pypi-previews.s3.amazonaws.com/211698e5d98fcc8ed556c565ae9ff76484e78163/gradio-5.14.0-py3-none-any.whl

Install Gradio Python Client from this PR

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

Install Gradio JS Client from this PR

npm install https://gradio-npm-previews.s3.amazonaws.com/211698e5d98fcc8ed556c565ae9ff76484e78163/gradio-client-1.10.0.tgz

Use Lite from this PR

<script type="module" src="https://gradio-lite-previews.s3.amazonaws.com/211698e5d98fcc8ed556c565ae9ff76484e78163/dist/lite.js""></script>

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Feb 3, 2025

🦄 change detected

This Pull Request includes changes to the following packages.

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

With the following changelog entry.

Fix the embedded Lite apps in the docs

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.

@whitphx whitphx changed the title Fix doc embedded lite app Fix the embedded Lite apps in the docs Feb 3, 2025
@abidlabs
Copy link
Member

abidlabs commented Feb 3, 2025

I assume this is ready for a review @whitphx?

@abidlabs abidlabs marked this pull request as ready for review February 3, 2025 17:56
@whitphx
Copy link
Member Author

whitphx commented Feb 4, 2025

You are right, sorry I forgot to switch the state.

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.

3 participants