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

Small optimizations #32

Merged
merged 8 commits into from
Jul 6, 2023

Conversation

IlyaSmagin
Copy link
Contributor

@IlyaSmagin IlyaSmagin commented Jun 18, 2023

Small fixes and changes:

  • Moved <Tagline /> to separate component, so it won't rerender with <Masonry />
  • Removed opacity tracking in <Category /> because header is lg:z-50 now
  • Changed height: 0px to display: none in <Subcategory />, in hope that it'll speed up DOM updates
  • Removed empty JSON string from cheatsheet.json to fix empty column bug i found:

Bug reproduction:

Bug example
If clicked on empty space (painted red) where pixel unit comparison usually is, empty string from cheatsheet.json would be copied to clipboard.
After removing these strings cheatsheet.json is now 11.5% smaller, so it could improve performance by a little.

@khatabwedaa khatabwedaa merged commit 0d30a41 into tailwindcomponents:main Jul 6, 2023
@khatabwedaa
Copy link
Contributor

@IlyaSmagin Thank you, for your create work ❤️

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.

None yet

2 participants