Refactor output collapse/expand/scroll

The current UI for controlling the different modes of the output area (collapsed/scrolled) is confusing. This is a work in progress to improve that UI. The idea is to set the `max-height` when collapsed to merely reduce the size of the output area, leaving a consistent area to click on for the mode changes.