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

Improve snippets scrolling behaviour #364

Merged
merged 5 commits into from
Sep 13, 2024
Merged

Improve snippets scrolling behaviour #364

merged 5 commits into from
Sep 13, 2024

Conversation

felixhabib
Copy link
Contributor

@felixhabib felixhabib commented Sep 9, 2024

See changeset.

While the animations look nice, they feel sluggish and can get slow when you start to select items not currently visible on screen.

@felixhabib felixhabib requested a review from a team as a code owner September 9, 2024 06:31
Copy link

changeset-bot bot commented Sep 9, 2024

🦋 Changeset detected

Latest commit: 288d3cc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
playroom Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -48,6 +52,8 @@ export const snippet = style([
paddingX: 'xlarge',
}),
{
marginInline: snippetsBorderSpace,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Setting the margin on the individual snippets rather than the container to avoid margin being applied before the actual scrollbar. This is an issue in master

@felixhabib felixhabib marked this pull request as draft September 12, 2024 03:11
@felixhabib felixhabib marked this pull request as ready for review September 12, 2024 05:23
Copy link
Contributor

@michaeltaranto michaeltaranto left a comment

Choose a reason for hiding this comment

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

Like where this landed. Great stuff

@felixhabib felixhabib enabled auto-merge (squash) September 13, 2024 06:20
@felixhabib felixhabib disabled auto-merge September 13, 2024 06:31
@felixhabib felixhabib merged commit ee73b75 into master Sep 13, 2024
6 checks passed
@felixhabib felixhabib deleted the snippets-scrolling branch September 13, 2024 06:31
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.

2 participants