-
Notifications
You must be signed in to change notification settings - Fork 191
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
feat: custom locale switcher #2981
Conversation
src/app/router/Welcome/Welcome.tsx
Outdated
@@ -64,7 +65,10 @@ function Layout() { | |||
return ( | |||
<div className="flex justify-center items-center min-h-screen"> | |||
<div className="w-full"> | |||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 mb-4"> | |||
<div className="absolute top-0 left-0 mt-4 ml-6 z-50"> |
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.
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.
true absolute positioning was a bad idea there. cause even if we scroll switcher will be visible and designs are not like that to support this. i changed layout with something else |
Can't test without built but tACK |
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.
Now the layout exceeds the window height and I see scrollbars (although there shouldn't be any).
I am unclear about the behavior we want to achieve here! it really depends on the content as well right? for eg. if i surf extension in brasil lang i can see scrollbars. as text there is longer. locale switcher takes addditional space. even we adjust some content for en lang on other contents there will be still the scrollbars appearing |
video_2024-01-23_12-46-06.mp4 |
resolved |
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.
tACK
Describe the changes you have made in this PR
local switcher in onboardings screen
custom design to use it diffferent places
Link this PR to an issue [optional]
Fixes #2918
Type of change
(Remove other not matching type)
feat
: New feature (non-breaking change which adds functionality)Screenshots of the changes [optional]
Checklist