Merge pull request #665 from matschundbrei/expand-shift-panel

Expand shift panel
This commit is contained in:
Igor Scheller 2019-10-20 15:45:30 +02:00 committed by GitHub
commit 4e65e6f73a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 22 deletions

View File

@ -38,11 +38,11 @@ class ShiftCalendarShiftRenderer
return [
$blocks,
div( 'panel-' . $class. ' shift-card" style="height: '
div('shift-card" style="height: '
. ($blocks * ShiftCalendarRenderer::BLOCK_HEIGHT - ShiftCalendarRenderer::MARGIN)
. 'px;',
div(
'shift panel panel-' . $class. '" style="position: absolute; width:100%;',
'shift panel panel-' . $class,
[
$this->renderShiftHead($shift, $class),
div('panel-body', [
@ -52,11 +52,10 @@ class ShiftCalendarShiftRenderer
'Name' => $shift['room_name']
])
]),
$shifts_row,
div('shift-spacer')
$shifts_row
]
)
)
)
];
}

View File

@ -196,29 +196,15 @@ table a > .icon-icon_angel {
z-index: 0;
overflow: hidden;
position: relative;
border-bottom-width: 1px;
border-bottom-style: dashed;
margin: 0 5px 5px 0;
&:hover {
overflow: visible;
z-index: 100;
border: none;
.shift {
z-index: 100;
}
}
}
.shift {
margin: 0 5px 5px 0;
position: absolute;
width: 100%;
&:hover {
margin: 0 5px 5px 0;
position: absolute;
width: 100%;
.shift {
min-height: 100%;
}
}
}