Closed wliederer closed 2 years ago
The previous work to split NestedInput responds to the window size. However, we will need the input to split based on container size. For an example, Nascar will be full window size on the page where the Mini Picker is to be displayed, but the container/sidebar for the mini picker will be smaller than standard. An example of handling this is in the Mini Picker branch of the Prop Picker: [https://github.com/PlayPickUp/prop-picker/blob/edf4fefa1ea1653184a86d7962abc00935a20dd7/src/Main.tsx#L86](https://github.com/PlayPickUp/prop-picker/blob/edf4fefa1ea1653184a86d7962abc00935a20dd7/src/Main.tsx#L86) (up to line 98)
nestedinput was adjusting to mini styles based on window not container, oops.
now it adjusts based on container, the turning point of parent width is 295, 295 px and below is mini styles 296 and above is normal