-
-
Notifications
You must be signed in to change notification settings - Fork 7
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(ui): Label Position Resets After Changing Number of Rows #131
fix(ui): Label Position Resets After Changing Number of Rows #131
Conversation
@HecticKiwi is attempting to deploy a commit to the Infinia Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe changes in the Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for spotting and fixing this.
Description
When you change the label position to right or top, then change the number of rows, the label position reverted to Left.
This was because changing the number of rows updates the search params, which in turn triggers the
useEffect()
that reloads the tier list with the new search param data. This data doesn't include the label position, so it was defaulting to left.Fixed by assigning the
labelPosition
on the search param data tiers before the call tosetTiers()
.Screenshots
Before
Screen.Recording.2024-12-27.220010.mp4
After
Screen.Recording.2024-12-27.214537.mp4
Checklist:
Summary by CodeRabbit
Summary by CodeRabbit