Go to Setup-> Custom Metadata Settings
Click “Manage” next to SDriveColumnConfiguration
You can clone the default record. Give your record a new label and name.
For Location, choose Profile or User
For Location Owner Id, put the record id of the profile or user this setting should apply to
In the Code field, edit the code to set header wrapping and field width in pixels for whichever fields you want
The format of the code is as follows:
[ { "fileObjectName":"cg__AccountFile__c", "fieldList":[ { "fieldName":"cg__File_Name__c", "wrapEnabled": true, "columnWidth": 100 }, { "fieldName":"cg__Description__c", "wrapEnabled": true, "columnWidth": 200 }, { "fieldName":"CreatedDate", "wrapEnabled": true, "columnWidth": 100 }, { "fieldName":"LastModifiedDate", "wrapEnabled": true, "columnWidth": 100 }, { "fieldName":"My_Custom_Field_with_a_Long_Name__c", "wrapEnabled": true, "columnWidth": 100 }, { "fieldName":"cg__Tags__c", "wrapEnabled": true, "columnWidth": 200 } ] } ]
Column width settings vs which columns are displayed
Which columns to display is taken from S-Drive Configuration->Customization Settings. That setting can be overridden by Custom Setting->View Setting.
The custom metadata column width/header wrap settings described here only determine how to display a column, not which columns to display.