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

Use flex positioning for SearchBar accessories to fix SSR glitches #925

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

gabro
Copy link
Member

@gabro gabro commented Oct 18, 2024

Not sure why I originally implemented this using absolute positioning, honestly...

The current implementation causes weird glitches in SSR applications, because the dimension of accessory is not known on the server.

2024-10-18 14 08 54

Using normal flex positioning removes the problem and is also way less less convoluted

@gabro gabro requested a review from veej October 18, 2024 12:10
@gabro gabro changed the title Use normal positioning for SearchBar accessories Use flex positioning for SearchBar accessories to fix SSR glitches Oct 18, 2024
@gabro gabro added the bug Something isn't working label Oct 18, 2024
@gabro
Copy link
Member Author

gabro commented Oct 18, 2024

Merging without a review since it seems trivial enough and I want to test it in an actual project

@gabro gabro merged commit b4d4e62 into main Oct 18, 2024
9 of 11 checks passed
@gabro gabro deleted the search-bar-layout branch October 18, 2024 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant