I recently posted this issue in the Moodle Tracker (https://tracker.moodle.org/browse/MDL-63478) and wanted to share it here too if someone has any suggestions or if anyone wants to help out in creating a patch.
Moodle 3.5 and beyond will no longer have an enrolled users form, but its functionalities are merged into the Participants page. The participants page however is a course main page (/user/index.php), so it will show the blocks of the course. This causes issues for the formatting of the participants table in the clean and more theme, as the table expands when the role of the user is getting changed (image attached).
I added a quick css fix for the text box to expand automatically less, so the carat would still be in the box. The table would however look much nicer if the blocks weren't there. Is there a way to hide the blocks (all blocks that are shown on all course main pages) on that page specifically - so to make that not a main page maybe? Or is there a way to make the table more dynamic in the code so it blends well with the blocks?
Thank you in advance!