From 8432471f68f6b08b847e3fd8c1e74d45a396ff86 Mon Sep 17 00:00:00 2001 From: Ioannis Kokkinidis Date: Tue, 21 Aug 2018 01:27:41 +0300 Subject: [PATCH 1/2] No longer hiding the header when we only show one day --- src/TimeGridHeader.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/TimeGridHeader.js b/src/TimeGridHeader.js index 158be899c..fc009821f 100644 --- a/src/TimeGridHeader.js +++ b/src/TimeGridHeader.js @@ -175,12 +175,9 @@ class TimeGridHeader extends React.Component { )} - {/* For rendering only one day no need to show the headers */} - {range.length > 1 && ( -
- {this.renderHeaderCells(range)} -
- )} +
+ {this.renderHeaderCells(range)} +
Date: Tue, 2 Oct 2018 13:41:48 +0300 Subject: [PATCH 2/2] Now hiding header w/ css --- src/TimeGridHeader.js | 6 +++++- src/less/time-column.less | 4 ++++ src/less/time-grid.less | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/TimeGridHeader.js b/src/TimeGridHeader.js index fc009821f..1562473eb 100644 --- a/src/TimeGridHeader.js +++ b/src/TimeGridHeader.js @@ -175,7 +175,11 @@ class TimeGridHeader extends React.Component { )} -
+
{this.renderHeaderCells(range)}