sidebar formatting for diff views