Skip to content

feature: Add autoCollapse to collapse the card if height exceed 25vh #278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 2, 2025

Conversation

dogusata
Copy link
Collaborator

@dogusata dogusata commented Apr 2, 2025

Problem

There should be a way to limit the card height if the incoming content height is expectedly too much.

Solution

  • Added autoCollapse option to ChatItem which allows consumer to limit the card height up to 25% of the screen height and if content exceeds the height it adds the expand/collapse button.
autoCollapse

Checks

  • I have tested this change on VSCode
  • I have tested this change on JetBrains
  • I have added/updated the documentation (if applicable)

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dogusata dogusata requested a review from a team as a code owner April 2, 2025 11:29
Jurredr
Jurredr previously approved these changes Apr 2, 2025
@Jurredr Jurredr merged commit 091bda6 into main Apr 2, 2025
5 checks passed
@Jurredr Jurredr deleted the dogusata/add-autocollapse-option-to-cards branch April 2, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants