That works perfectly 🙂
Thank you for the help.
For reference, if anyone needs this, here is the custom CSS I use to hide each individual action on the context menu:
.cm-files:has([data-action="folder"]) [data-action="delete"],
.cm-files:has([data-action="folder"]) [data-action="rename"],
.cm-files:has([data-action="folder"]) [data-action="move"],
.cm-files:has([data-action="folder"]) [data-action="copy"],
.cm-files:has([data-action="folder"]) [data-action="duplicate"] {
display: none;
}
.cm-sidebar [data-action="delete"],
.cm-sidebar [data-action="rename"],
.cm-sidebar [data-action="move"],
.cm-sidebar [data-action="copy"],
.cm-sidebar [data-action="duplicate"] {
display: none;
}
.cm-topbar [data-action="delete"],
.cm-topbar [data-action="rename"],
.cm-topbar [data-action="move"],
.cm-topbar [data-action="copy"],
.cm-topbar [data-action="duplicate"] {
display: none;
}