Skip to content

fix(ScenarioCard): adjust height properties and correct typos #6527

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 4 commits into from
Jun 9, 2025

Conversation

DEEP-600
Copy link
Contributor

@DEEP-600 DEEP-600 commented Jun 5, 2025

This PR fixes #6384.

It resolves the issue of excessive vertical space in the expanded sections of the Service Mesh Labs page.
The height property for the .active and .open-animate classes in ScenarioCard.style.js has been changed from a fixed value to auto.
This allows the expanded content to dynamically adjust its height based on its contents, thereby correcting the layout issue and enhancing the overall user experience.

layer.-.card.-.responsiveness.mp4

@l5io
Copy link
Contributor

l5io commented Jun 5, 2025

🚀 Preview for commit d634f65 at: https://684182f1e33c30aed7166469--layer5.netlify.app

@LibenHailu
Copy link
Contributor

Hi @DEEP-600, thank you for your contribution! There's no need for the comments, as Git helps us track the changes made. Other than that, it looks good to me (LGTM). Reviewers can remove the comments before merging.

@l5io
Copy link
Contributor

l5io commented Jun 5, 2025

🚀 Preview for commit c52be91 at: https://6841d1690c73d9605dd533ca--layer5.netlify.app

Signed-off-by: Vivek Vishal <vishalvivek488@gmail.com>
@l5io
Copy link
Contributor

l5io commented Jun 9, 2025

🚀 Preview for commit 61d3f1c at: https://68465b51a590ccfeb05d0a27--layer5.netlify.app

width: 100%;
height: 100%;
height: auto;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a circular dependency here, setting parent's (.open-animate) height to auto and then giving child (.active) a height of 100%. Llet's just simply remove the hardcoded height and make parent a flex container

Signed-off-by: Vivek Vishal <vishalvivek488@gmail.com>
@vishalvivekm
Copy link
Contributor

@DEEP-600
Thank you for your contribution!
Let's discuss this during the website call today at 7 AM CT | 5:30 PM IST.

Add it as an agenda item to the meeting minutes, if you would :)

@vishalvivekm vishalvivekm merged commit 7aea828 into layer5io:master Jun 9, 2025
5 of 6 checks passed
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.

Excessive Height in Card Expansion
4 participants