From ec47d124bb1626d1aa604d7fdb6ddbbd77c14987 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Thu, 26 Dec 2019 16:45:38 +0100 Subject: [PATCH] Shifts overview: only scroll shifts, not whole page --- includes/view/ShiftCalendarRenderer.php | 3 ++- resources/assets/themes/base.less | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/includes/view/ShiftCalendarRenderer.php b/includes/view/ShiftCalendarRenderer.php index 23fc0051..3a6df4fa 100644 --- a/includes/view/ShiftCalendarRenderer.php +++ b/includes/view/ShiftCalendarRenderer.php @@ -145,7 +145,8 @@ class ShiftCalendarRenderer if (count($this->lanes) == 0) { return info(__('No shifts found.'), true); } - return div('shift-calendar', [ + + return div('shift-calendar table-responsive', [ $this->renderTimeLane(), $this->renderShiftLanes() ]) . $this->renderLegend(); diff --git a/resources/assets/themes/base.less b/resources/assets/themes/base.less index 74dadc11..1335cd04 100644 --- a/resources/assets/themes/base.less +++ b/resources/assets/themes/base.less @@ -233,6 +233,15 @@ table a > .icon-icon_angel { -moz-animation: pulse 1s infinite; } +.legend .label { + white-space: pre-wrap; + line-height: 2; +} + +.shift-calendar.table-responsive { + overflow-x: inherit; +} + @keyframes pulse { 0% { transform: rotate(0deg);