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

Disclaimer updated so text and background colors can be configured. #276

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

saatchi-david
Copy link
Contributor

@saatchi-david saatchi-david commented Nov 20, 2024

BEFORE
Configuration for the disclaimer was limited to the title and message text. The button text can be customized but instruction was missing from the readme.

disclaimer: {
    title: 'Disclaimer',
    message: 'By using this chatbot, you agree to the <a target="_blank" href="https://flowiseai.com/terms">Terms & Condition</a>',
},

AFTER
Added ability to configure the text color, button color, button text color, background color, and the "blurred background color" (the blurred background that overlays the chat interface while the modal is shown). Also added the missing button text property.

disclaimer: {
    title: 'OUR DISCLAIMER',
    message: 'Do not include personal information and check responses for accuracy.',
    textColor: black'',
    buttonColor: 'black',
    buttonText: 'OK',
    buttonTextColor: 'white',
    blurredBackgroundColor: 'rgba(255, 255, 255, 0.8)', //The color of the blurred background that overlays the chat interface
    backgroundColor: 'gray',
},

Can be tested using the web.js from my fork:
https://cdn.jsdelivr.net/gh/saatchi-david/FlowiseChatEmbed/dist/web.js

image

Thanks @HenryHengZJ !

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.

1 participant