-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[fix] responsive onboarding setup wizard #11847
[fix] responsive onboarding setup wizard #11847
Conversation
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.
Hi @FidalMathew! Unfortunately, this doesn't seem like the right change. The issue referred to the fact that the number of items in the language list changed even though the width of the card container did not change, but instead changed depending on the width of the window.
Look at these two cases:
In both of them, the width of the card is the same, 700px, but in the second one there is one less item than in the first one, and that is because the window is narrower, but it shouldn't be like that.
It is an issue with the way we calculate the number of visible languages.
@AlexVelezLl Thanks for the clarification. I am considering fetching the width of the |
Oh @FidalMathew I think you can add a ref to the div container and obtain its width |
Got it! Thanks @AlexVelezLl |
@AlexVelezLl Could you take a look at the PR? |
Build Artifacts
|
Hi @FidalMathew and @AlexVelezLl - can we do something for the position of the 'More languages' label - currently when I select a language different than English there are some cases where it goes on the second line which should be avoided if possible: 2024-02-15_14-18-41.mp4 |
Thanks @pcenov, I'll look into this issue. |
@pcenov do you have any suggestions on how to approach this issue? |
Hi @FidalMathew, we are devleoping a new KDS component that I think would fit good for doing this. But could take some more time. @pcenov, Can we accept this as a solution for the original issue regarding the items hiding regardless of whether there is still space in the container?, and make a follow up issue about it only taking a single line? Since for this there are some other dependencies that we should develop first. |
Thanks for letting me know! 😄 |
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.
Hi @AlexVelezLl - yes, certainly!
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.
Thank you all! LGTM :). We will follow it up in #11923.
18c297c
into
learningequality:release-v0.16.x
Summary
Made the setup wizard responsive for screen size by eliminating max-width.
video.mp4
…
References
fixes #7997
…
Reviewer guidance
…
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)