I'm trying have list items that have padding horizontally so that the scrollbar sits perfectly on the furthest right of the container. I've come with 3 less than ideal solutions, is there any other way to do this?
https://codesandbox.io/s/charming-maxwell-k6l6r?file=/src/App.js
The solutions I've come up with that aren't ideal are:
Found an answer after missing something in documentation.
Just add some padding in the style prop of List
<List
style={{padding: '10px'}}
height={height}
width={width}
rowCount={rowCount}
rowHeight={rowHeight}
rowRenderer={rowRenderer}
/>