This is a modified version of 'Minimap autohide' by Daniel34 which can be found here: https://mods.factorio.com/mod/minimap-autohide
Not all of us have big screens! This mod will autohide the minimap when the mouse is hovering over certain entities so that the UI won't be cut off the edge of the screen. This mod will autohide for entities that Daniel34's mod didn't, including mining drills, assembling machines, labs, etc. Now you can finally use the functionality of the minimap and be able to read the game UI without it being cut off the edge of the screen!