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: tab in license page aligned properly #4006

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

joemiltonm
Copy link
Contributor

@joemiltonm joemiltonm commented Nov 21, 2023

Hi SigNoz team,

Fixing #3892

The misalignment of the inkbar under the tabs in license page was due to the asynchronous nature of the 't' function used for translation. Since the label for the tabs were using the 't' function there was a delay which led to incorrect calculations for the ink bar's size and position.

To fix this, I've used 'ready' property from the useTranslation hook to ensure all the translations for the specified namespace is fully loaded before the final Tabs component is rendered.

Here are the images of properly aligned inkbar.

Screenshot from 2023-11-21 12-04-27

Screenshot from 2023-11-21 12-04-33

@palashgdev palashgdev merged commit 84f2885 into SigNoz:develop Nov 21, 2023
11 checks passed
@palashgdev
Copy link
Contributor

Thanks @joemiltonm 😊

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.

None yet

2 participants