β»οΈ Reproduction Steps
- Place the chat component into a container with 800px width and 24px padding
- Configure it with a short initial message
- Run the app
- The message(s) have scrollbars displayed !
β
Expected Behavior
There should be no extra scrollbar displayed unless needed due to the size of the content of the message(s)
β Actual Behavior
There is an unwanted scrollbar in the message(s) container
This seems to be caused by the presence of .copilotKitMessagesFooter that has a Bulgarian constant width of 97% (changed from earlier 90% ... also conceptually wrong)
8674da1#r163976396
Expecting specific width of a component making sub-component widths in exact percentages is an anti-pattern, if actually needed, it should use calc 100% - the necessary padding/margin
Alternatively, the layout could be reviewed as a whole, not having to rely on parent-child size relationships (using flex or padding/margin directly on the message component)
π CopilotKit Version
v1.9.3 but I can see the same value being used in v1.10.2
π Logs (Optional)
β»οΈ Reproduction Steps
β Expected Behavior
There should be no extra scrollbar displayed unless needed due to the size of the content of the message(s)
β Actual Behavior
There is an unwanted scrollbar in the message(s) container
This seems to be caused by the presence of .copilotKitMessagesFooter that has a Bulgarian constant width of 97% (changed from earlier 90% ... also conceptually wrong)
8674da1#r163976396
Expecting specific width of a component making sub-component widths in exact percentages is an anti-pattern, if actually needed, it should use calc 100% - the necessary padding/margin
Alternatively, the layout could be reviewed as a whole, not having to rely on parent-child size relationships (using flex or padding/margin directly on the message component)
π CopilotKit Version
v1.9.3 but I can see the same value being used in v1.10.2π Logs (Optional)