Shifts overview: only scroll shifts, not whole page

This commit is contained in:
Igor Scheller 2019-12-26 16:45:38 +01:00
parent 25cdf1cac8
commit ec47d124bb
2 changed files with 11 additions and 1 deletions

View File

@ -145,7 +145,8 @@ class ShiftCalendarRenderer
if (count($this->lanes) == 0) { if (count($this->lanes) == 0) {
return info(__('No shifts found.'), true); return info(__('No shifts found.'), true);
} }
return div('shift-calendar', [
return div('shift-calendar table-responsive', [
$this->renderTimeLane(), $this->renderTimeLane(),
$this->renderShiftLanes() $this->renderShiftLanes()
]) . $this->renderLegend(); ]) . $this->renderLegend();

View File

@ -233,6 +233,15 @@ table a > .icon-icon_angel {
-moz-animation: pulse 1s infinite; -moz-animation: pulse 1s infinite;
} }
.legend .label {
white-space: pre-wrap;
line-height: 2;
}
.shift-calendar.table-responsive {
overflow-x: inherit;
}
@keyframes pulse { @keyframes pulse {
0% { 0% {
transform: rotate(0deg); transform: rotate(0deg);