chainlit
chainlit copied to clipboard
feat: enable resizing the side panel
- The child component is hidden when resizing to speed up rendering
- The handle has a 5px+ border around it to help users select it
- Removed the code related to transitions as it wasn't working (transitions were activated on
transform,transformwasn't used)
https://github.com/Chainlit/chainlit/assets/494686/de2e462c-8557-4bdc-95ec-6d685a00e8ac
looks good! could you provide a minimal gif of the result before merging? Thanks!
done!
Moved away from hiding the children component, and used pointer-events: none when resizing. This solves the problem when hovering-over an iframe during resizing would mess the resizing state.
This might introduce a small performance degradation, but it gives more visual feedback to the user, so it's a better solution.