Alright, this was annoying me, new method to achieve this that is slightly less risky, important note here is it uses a CSS method that is not universally accepted, but has pretty good browser support. still annoying not to just have clear ID’s or classes for this over random attributes of children.
So here is for each one of the current 3 options
File Upload:
.dcb-te-player-assignment-button-wrapper:has([data-dcb-ui-described-by="dcb-te-player-assignment-upload-options-0-upload-button-details"]) {
display: none;
}
Record Your Screen:
.dcb-te-player-assignment-button-wrapper:has([data-dcb-ui-described-by="dcb-te-player-assignment-upload-options-0-record-screen"]) {
display: none;
}
Add a Link:
.dcb-te-player-assignment-button-wrapper:has([data-dcb-ui-described-by="dcb-te-player-assignment-upload-options-0-add-link-description"]) {
display: none;
}
You can merge them if you want, so for the original posters question the solve this way would be:
.dcb-te-player-assignment-button-wrapper:has([data-dcb-ui-described-by="dcb-te-player-assignment-upload-options-0-record-screen"]), .dcb-te-player-assignment-button-wrapper:has([data-dcb-ui-described-by="dcb-te-player-assignment-upload-options-0-add-link-description"]) {
display: none;
}
Just make sure to check your main supported browsers (the majors all support this), otherwise this is much safer than the previous answer as if Docebo makes a change or adds a method, things will simply appear again, as opposed to the wrong things being hidden.