Skip to content

πŸ› Bug: Bulgarian constant in .copilotKitMessagesFooter breaks chat designΒ #2325

Description

@hejtmii

♻️ Reproduction Steps

  1. Place the chat component into a container with 800px width and 24px padding
  2. Configure it with a short initial message
  3. Run the app
  4. The message(s) have scrollbars displayed !
Image

βœ… 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)

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions