Open Mgrsc opened 4 hours ago
To address the issue of dialog boxes extending beyond the window when sending code blocks or fields with tags in Chainlit, you can try the following solutions:
CSS Adjustments: Ensure that the CSS for dialog boxes includes properties to handle overflow. You can add or modify the CSS to include overflow: auto;
or overflow: scroll;
to ensure content is contained within the dialog box.
Responsive Design: Check if the dialog box component is using responsive design techniques. You might need to set a maximum width or use media queries to adjust the size based on the screen size.
ScrollContainer Component: Chainlit uses a ScrollContainer
component with overflowY: 'auto'
to manage scrolling. Ensure this is applied to your dialog boxes to handle content overflow properly [1].
Custom Configuration: If you have custom CSS or JavaScript, ensure they are correctly configured in the config.toml
file to override default styles if necessary [2].
These steps should help in managing the dialog box size and preventing it from extending beyond the window.
To continue talking to Dosu, mention @dosu.
Describe the bug When I send a code block or a field with tags, the dialog box extends beyond the window.
To Reproduce
send
or send