In X-Cart 5, you need to create a custom module and develop some custom code to display the in-stock variants in the products thumbnail listings. I believe it will be more complex customization comparing to X-Cart 4.
As a possible solution, you can use a special module -
Variants Table View. It allows to display all possible variants on the product page without extra clicks.