Reimplement flexbox layout so that condensed view and collapsible log can be done