Thanks for this!
It inspired me to find an even easier solution to hide any field of your choice with css. Without depending on data-primary which is not specific to a field. Hereâs how youâd hide tags and description fields for example :
/* Hide specific fileds */
.field[data-collection=âdirectus_usersâ][data-field=âtagsâ],
.field[data-collection=âdirectus_usersâ][data-field=âdescriptionâ]{
display: none !important;
}