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

fix(themes): grid falling apart #2418

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

chaejunlee
Copy link

When resizing the Themes, the grid falls apart.

It is due to the fact that 1fr of grid-cols-[260px_1fr] needs to be minmax(0,1fr).

And there was a typo in the className as well, which was grids-col-2.

I fixed both of the mistakes.

AS-IS

AS-IS

TO-BE

TO-BE

Copy link

vercel bot commented Jan 14, 2024

@chaejunlee is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@chaejunlee chaejunlee changed the title Fix(themes): grid falling part fix(themes): grid falling part Jan 14, 2024
@chaejunlee
Copy link
Author

Caught more mistakes and fixed them.

AS-IS

Screen Recording Jan 14

TO-BE

Screen Recording Jan 14 (1)

Copy link
Collaborator

@shadcn shadcn left a comment

Choose a reason for hiding this comment

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

Awesome. Thank you.

Copy link

vercel bot commented Jan 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 14, 2024 11:24am

Copy link
Collaborator

@shadcn shadcn left a comment

Choose a reason for hiding this comment

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

@chaejunlee I'm still seeing a few issues with the grid at 768px. Would you be able to take a look please?

GrNlUCOx

@shadcn shadcn added area: www postpone: more info or changes requested maintainers asked a question or needs more info labels Jan 14, 2024
@chaejunlee
Copy link
Author

chaejunlee commented Jan 14, 2024

I thought md:grids-col-2 was a typo, in fact that was what needed to be removed.

I have removed them and things work fine.

Screenshot 2024-01-14 at 08 47 28

@chaejunlee chaejunlee requested a review from shadcn January 14, 2024 16:49
@chaejunlee chaejunlee changed the title fix(themes): grid falling part fix(themes): grid falling apart Jan 15, 2024
@chaejunlee
Copy link
Author

Hello, @shadcn ! Sorry to @ you, but can you please follow up?

@chaejunlee chaejunlee marked this pull request as draft March 5, 2024 21:54
@chaejunlee chaejunlee marked this pull request as ready for review March 5, 2024 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: www postpone: more info or changes requested maintainers asked a question or needs more info
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants