summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-12-26 16:45:38 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-12-26 16:46:06 +0100
commitec47d124bb1626d1aa604d7fdb6ddbbd77c14987 (patch)
tree45e6a59279fdb627a5c7f10036d5ee6fd2123e8f
parent25cdf1cac8c66c55a7c2a354c1be51de261da5b5 (diff)
Shifts overview: only scroll shifts, not whole page
-rw-r--r--includes/view/ShiftCalendarRenderer.php3
-rw-r--r--resources/assets/themes/base.less9
2 files changed, 11 insertions, 1 deletions
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);