Automatically close the "mini" terminal when opening the "full page" version

Basically, make the button switch to a full page.

Screenshot of the "mini-terminal" with a "Full Page Terminal" button above it