You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@niemingxing-poper Hello there! I'm here to assist you with any bugs, questions, or contributions you may have regarding Dify. Let's work together to solve this issue!
To address the session styling issues you're experiencing with Dify when embedded in a website, consider the following steps:
Modify CSS Variables: You can customize the default styles using CSS variables. For example, adjust the position or size of elements to ensure they are not obscured. Here's a basic example of how you might change the background color:
Use containerProps Option: This allows you to set inline styles or apply CSS classes to the Dify components. You can adjust styles like width, height, and position to ensure visibility:
Check for Conflicting Styles: Ensure that your website's CSS is not conflicting with Dify's styles. Use browser developer tools to inspect the elements and see which styles are being applied.
Adjust iFrame Styles: If you're using an iframe to embed Dify, you can directly modify the style attribute in the iframe code to adjust its appearance and position:
These steps should help you troubleshoot and resolve the styling issues you're encountering. If the problem persists, reviewing the specific CSS rules applied to the embedded Dify components might provide further insights [1][2].
Self Checks
Dify version
Version 0.12.1
Cloud or Self Hosted
Cloud
Steps to reproduce
The session style has issues after Dify is embedded in the website, with the top of the session being completely obscured.
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
The text was updated successfully, but these errors were encountered: