Skip to content
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

[BUG] Dynamic Grid Layout for Case Studies Page Based on Number of Items #3566

Open
2 tasks done
Adi-204 opened this issue Jan 12, 2025 · 2 comments
Open
2 tasks done
Labels

Comments

@Adi-204
Copy link

Adi-204 commented Jan 12, 2025

Describe the bug.

The current implementation of the Case Studies page uses a hardcoded grid-cols-3 class for the grid layout. This causes an issue when there are fewer than 3 items (e.g., only 2 case studies), resulting in uneven spacing and a less aesthetically pleasing layout.

Expected behavior

The grid should adjust based on the number of case studies available. If there are fewer than 3 items (e.g., 2 or 1), the grid should dynamically adjust to display them in a more appropriate layout (e.g., grid-cols-2 for 2 items, grid-cols-1 for 1 item).

Screenshots

image

How to Reproduce

Steps to Reproduce:

  1. Navigate to the Case Studies page (https://www.asyncapi.com/casestudies).
  2. Observe the grid layout when there are only 2 case studies displayed.
  3. Notice that the grid looks uneven with large empty spaces.

🥦 Browser

Google Chrome

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

Yes I am willing to submit a PR!

@Adi-204 Adi-204 added the bug label Jan 12, 2025
Copy link

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@Adi-204
Copy link
Author

Adi-204 commented Jan 12, 2025

Please assign me the issue I would like to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant