With the above mentioned code, the listview should be automatically adjusted its with based on the content while using template and thecolorpicker should be on the second line. If doesn't work, then it could be due to older version of the listview where theCSS templating features aren't implemeted.
Could be please update us the package details of the EJ2 components you are using in your project? or you can try updatingthe EJ2 components to the latet versions and get it working. Also we have attached a live version of sample for yourreference.