Closed 1chooo closed 2 months ago
Hey. I think you have several possibilities:
transformData
You could add something like react-responsive
to query the viewport width in React and dynamically reduce the amount of data you show using the transformData
prop:
scrollLeft
Or if you really want to scroll the container you can set the scrollLeft
property of the HTML element using a React ref:
@1chooo I realized there was a bug in the scrollLeft
approach, it did not scroll on the initial page load. I've updated the Codesandbox above to fix that.
@1chooo I realized there was a bug in the
scrollLeft
approach, it did not scroll on the initial page load. I've updated the Codesandbox above to fix that.
Thank you!
I am currently using this package, and I have successfully displayed it on my webpage. However, when loading in mobile mode, the slider is on the far left, and I want it to be displayed from the far right at the beginning. How can I make it?
Or I can switch the different GitHub stats between PC and mobile mode, mobile will auto render the smaller calendar.
Current
Expected
Thanks