formaat-design / reshaped

Community repository for storing examples, reporting issues and tracking roadmap
https://reshaped.so
97 stars 3 forks source link

Active tab is not centered #173

Closed Madhavkabra closed 9 months ago

Madhavkabra commented 10 months ago

When we have scrollable tabs, some tabs can be only partially visible. If such a tab is clicked, the scroll should adjust and center the active tab such that it is at-least completely visible to the user.

Screenshot_20230904-151534

In the image, we have selected a tab that is partially out of the screen and is active, but the scroll does not update to center it.

blvdmitry commented 10 months ago

Going to add to one of the upcoming release, meanwhile you should be able to scroll the container in the onChange handler

blvdmitry commented 9 months ago

Done, coming in the next release

https://github.com/formaat-design/reshaped/assets/887379/217c7fd5-9e97-4207-8ea8-e5cd79c9ec9c