It's fine, the switch gets hot around the top (which makes sense because that is where the vents are) and you have plenty of clearance there.
My bookshelf: https://www.goodreads.com/review/list/152760030
Comics: https://leagueofcomicgeeks.com/profile/dikitain