From 377bd6e2b74d05bbfa300f3844f4cd3739b5ec24 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 13 Apr 2019 11:08:59 -0700 Subject: [PATCH] Collapse calendar view buttons on narrower screens (<= 1200px) --- frontend/src/Calendar/Header/CalendarHeader.js | 16 +++++++++++++++- .../Calendar/Header/CalendarHeaderConnector.js | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/frontend/src/Calendar/Header/CalendarHeader.js b/frontend/src/Calendar/Header/CalendarHeader.js index 4fea8356d..9e65df87b 100644 --- a/frontend/src/Calendar/Header/CalendarHeader.js +++ b/frontend/src/Calendar/Header/CalendarHeader.js @@ -83,6 +83,7 @@ class CalendarHeader extends Component { end, longDateFormat, isSmallScreen, + collapseViewButtons, onTodayPress, onPreviousPress, onNextPress @@ -145,7 +146,7 @@ class CalendarHeader extends Component { } { - isSmallScreen ? + collapseViewButtons ? + { + isSmallScreen ? + null : + + Month + + } +