css style is ugly. [0.8.0]
Self Checks
- [X] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [X] I have searched for existing issues search for existing issues, including closed ones.
- [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [X] Please do not modify this template :) and fill in all the required fields.
Dify version
0.8.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
demo: https://dify.airapp.run/chat/FNrS0b0RUO3YEDqV
✔️ Expected Behavior
having a margin ?
❌ Actual Behavior
margin 0
To add a margin to the chatbot interface in version 0.8.0 of the self-hosted Dify application, you can use the containerProps option to set inline styles. Here is an example configuration that adds a margin:
window.difyChatbotConfig = {
// ... other configurations
containerProps: {
style: {
margin: '20px', // Add your desired margin here
},
},
}
This configuration will apply a 20px margin to the chatbot interface. Adjust the value of the margin property as needed to achieve the desired spacing. Make sure this configuration is defined in the HTML file before the embed.js script is included, as the script relies on the difyChatbotConfig being available when it runs [1][2].
To continue talking to Dosu, mention @dosu.
Duplicated https://github.com/langgenius/dify/issues/8201 Fixed in https://github.com/langgenius/dify/pull/8207