mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
Add a fixed buffer for rounding offsets when scaling time to pixels
This commit is contained in:
parent
5b2c98cf1d
commit
a03e8ec2d5
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
<div class="scroll-element">
|
||||
<div class="now"><span>now</span></div>
|
||||
<? foreach($schedule->getSchedule() as $roomname => $events): ?>
|
||||
<div class="room <? if($roomname == $room->getSlug()): ?>highlight<? endif ?>" style="width: <?=ceil($schedule->getDurationSum() / $schedule->getScale())?>px">
|
||||
<div class="room <? if($roomname == $room->getSlug()): ?>highlight<? endif ?>" style="width: <?=round($schedule->getDurationSum() / $schedule->getScale()) + 50?>px">
|
||||
<? foreach($events as $event): ?>
|
||||
<div
|
||||
class="block <?=h(@$event['special'] ?: 'event')?>"
|
||||
|
|
Loading…
Reference in a new issue