feat(useGrid): fallback size when containerWidth is 0#38
feat(useGrid): fallback size when containerWidth is 0#38luizcieslak wants to merge 1 commit intohernansartorio:masterfrom
Conversation
|
Thank you for taking the time for this! I was just trying it locally, it works well for the default size, but if you change the container size to something else then the aspect ratio gets distorted (notice the circles on hover): So I'm not sure if setting a fixed fallback size is actually the proper solution 🤔 |
|
@hernansartorio hello. I started with your calendar today and it's absolutelly great with it's minimalistic and intuitive API, but unfortunatelly I faced exact same issue while trying to wrap it with popperjs' tooltips. I think the best solution here is to rewrite days to flexbox rows (instead of line-breaking technique with I'm sorry if this reads like I'm trying to teach you on how to do things. Just collecting my thoughts about this PR :) UPD: just got an idea. Why don't you keep DatePicker responsive, but refactor standalone Calendar to have static layout :) |
|
@JamesJGoodwin hey, thanks for the input. Well, needing a responsive date picker was one of the main reasons I built it so making it fixed by default would defeat that purpose. I still need to think about this more and play with potential solutions, but I'm beginning to think that adding a In any case, this is easily solvable on your side as I mentioned here at the end. |
fixes of repeat booking


Closes #37
I tried to write a unit test for
useGridbut it fails since the returnedrefmust be place somewhere:I also tried toHaveAttribute from
jest-domwith no success.It seems to solve the problem tho, I tested manually across different devices.
If you have a suggestion regarding the test, I can update the PR before merging.