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

Facets filter button becomes fixed only after scrolling past chat response UI elements #331

Merged
merged 2 commits into from
May 28, 2024

Conversation

adamjarling
Copy link
Contributor

What does this do?

Removes the Facets Filter button from relying upon the Fixed Search bar to trigger it's own fixed position in the center of the screen. Instead, there's now a scroll event listener, and if the Filter element gets within a range of the top of the viewport (hardcoded for now to 70px), this calculation will trigger the Filter element's position on the screen.

image image

How to test

Perform a Chat AI search, and notice the placement of the Filter button when scrolling up and down the page.

@adamjarling adamjarling self-assigned this May 21, 2024
Copy link
Member

@mathewjordan mathewjordan left a comment

Choose a reason for hiding this comment

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

Nice, I'm falling in love with using these refs where possible.

@adamjarling adamjarling merged commit 3be84fc into preview/chat-integration May 28, 2024
1 check passed
@adamjarling adamjarling deleted the 4706-ai-shared-link-bug branch May 28, 2024 20:19
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