dify icon indicating copy to clipboard operation
dify copied to clipboard

css style is ugly. [0.8.0]

Open nihaocool opened this issue 2 years ago • 2 comments

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

image

✔️ Expected Behavior

having a margin ?

❌ Actual Behavior

margin 0

nihaocool avatar Sep 10 '24 09:09 nihaocool

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.

dosubot[bot] avatar Sep 10 '24 09:09 dosubot[bot]

Duplicated https://github.com/langgenius/dify/issues/8201 Fixed in https://github.com/langgenius/dify/pull/8207

crazywoola avatar Sep 10 '24 09:09 crazywoola