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: adjust Grid components padding #158

Merged
merged 1 commit into from
Nov 15, 2024
Merged

fix: adjust Grid components padding #158

merged 1 commit into from
Nov 15, 2024

Conversation

asanehisa
Copy link
Contributor

Talked with aaron and decided to remove vertical spacing as it isn't viewable while editing. Also made padding happen to the entire grid component (not per grid item).

I know it's ugly to have all the padding classes in a giant object, but tailwind wouldn't recognize
const paddingClasses = [0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 16, 20, 24].map(n => ({label: ${n}, value: py-${n}}))
as non-dynamic tailwind classes...

Tested in local dev and made sure all the paddings worked as expected

@asanehisa asanehisa merged commit b6c697e into main Nov 15, 2024
9 checks passed
@asanehisa asanehisa deleted the grid branch November 15, 2024 15:37
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.

3 participants