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 binge map upon entering a binge #51

Merged
merged 4 commits into from
Jan 22, 2025
Merged

Fix binge map upon entering a binge #51

merged 4 commits into from
Jan 22, 2025

Conversation

fatihbaltaci
Copy link
Contributor

No description provided.

Upon entering a new binge, the question slug page re-renders. This sets the binge map width to 0 temporarily. However, the binge map nodes are miscalculated at this instant, with x values of 0. This makes the nodes lean to the left and the nodes stay like that when the width of the binge map is fixed as the render finishes.

To fix the issue, the node positions are not calculated if we have an invalid width for the binge map card.
@fatihbaltaci fatihbaltaci merged commit 3b7c436 into master Jan 22, 2025
1 of 3 checks passed
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