θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content

Conversation

@timothycarambat
Copy link
Member

Pull Request Type

  • ✨ feat
  • πŸ› fix
  • ♻️ refactor
  • πŸ’„ style
  • πŸ”¨ chore
  • πŸ“ docs

Relevant Issues

resolves #919

What is in this change?

  • Refactor how chat uses tailwindcss for its class styles
  • Implement tree shaking for TailwindCSS
  • Refactor classes in embed widget to use allm- prefix to avoid default style and class collisions
  • Have widget self-ref and load in its own style sheet to prevent breaking of current embeds.

Additional Information

  • Bundle size now reduced from 900kb -> 600kb
  • Will prevent style collision with host website.
  • Published new embed to frontend with anythingllm-chat-widget.min{.js,.css}

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

@timothycarambat timothycarambat merged commit 245d1b8 into master Jul 1, 2024
@timothycarambat timothycarambat deleted the 919-chat-embed-style-prefixing branch July 1, 2024 23:32
franzbischoff pushed a commit to franzbischoff/anything-llm that referenced this pull request Jul 3, 2024
* Patch Embed styles with prefixing

* forgot files
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Jul 31, 2024
* Patch Embed styles with prefixing

* forgot files
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Aug 1, 2024
* Patch Embed styles with prefixing

* forgot files
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Aug 2, 2024
* Patch Embed styles with prefixing

* forgot files
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Aug 3, 2024
* Patch Embed styles with prefixing

* forgot files
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
* Patch Embed styles with prefixing

* forgot files
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.

[BUG]: chatbot widget overriding html css

2 participants