-
Notifications
You must be signed in to change notification settings - Fork 78
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
Lf 4426 days of the week component repeat crop plan is not understandable in punjabi or hindi #3437
Conversation
…nent-repeat-crop-plan-is-not-understandable-in-punjabi-or-hindi
Thank you for getting rid of the horrible absolute positioning code!! 🙏 It's much improved and definitely adaptable. I have a minor request and some questions:
Screen.Recording.2024-09-12.at.12.17.37.PM.mov
I don't mind too much either way, but in terms of Hindi and Punjabi, they probably will break awkwardly onto two lines even with the smaller gap so we don't have to tighten it up that much if we don't want to.
New -- much better, but I think it would look nicer if all rectangles were equal width? @antsgar curious what you think? Hindi/Punjabi the variable width looks fine to me, as the difference between the shortest and longest day isn't as dramatic and they aren't bunched in the middle either: (2 and 3 are optional adjusts in my opinion by the way. Only 1 is a bug that should be fixed) |
|
@Duncan-Brain by fixed width, you mean that the overall width gets fixed and then flexbox handles the even distribution? So it would require passing a different appropriate max width to the the component based on current language, like a map Yeah I guess I also do not want to start creating language-based style maps. I'll just wait to see if @antsgar has a thought about it, but I'm okay with straight variable width then. |
@kathyavini What I meant by width is that I personally had trouble finding a solution that used the intrinsic content width as the equal width for all flex items. I tried working on the flex basis to achieve that following this thread (https://stackoverflow.com/questions/29503227/how-to-make-flexbox-items-the-same-size) but flex basis 0 with flex grow requires some width property of some sort to grow up to "fixed max width", and the flex basis 100% I also couldn't get to work I think commenters on that had the same issue. There might be more complex react refs to watch the width possible to craft a responsive solution use that but didn't seem worth it for this quick fix... I would have preferred grid but it doesn't work with wrapping and fit content according to this thread: https://stackoverflow.com/questions/52764726/css-grid-auto-fit-with-max-content |
Description
This PR adapts the component to welcome longer abbreviations by no longer requiring a square button checkbox and allowing varying size.
Jira link:LF-4426
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: