chg: [periodic_notification] Added css rule

pull/8575/head
Sami Mokaddem 2022-09-08 16:11:17 +02:00
parent d7b07138c1
commit 8d64a57095
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 33 additions and 27 deletions

View File

@ -142,9 +142,9 @@ if (!function_exists('computeLinePositions')) {
<?php endforeach ?>
</div>
<div style="position: relative;">
<span style="<?= sprintf('position: absolute; white-space: nowrap; translate: -50%%; left: %spx; top: %spx;', 0, 0) ?>"><?= __('Period 2') ?></span>
<span style="<?= sprintf('position: absolute; white-space: nowrap; translate: -50%%; left: %spx; top: %spx;', $canvasWidth/2, 0) ?>"><?= __('Previous period') ?></span>
<span style="<?= sprintf('position: absolute; white-space: nowrap; translate: -50%%; left: %spx; top: %spx;', $canvasWidth, 0) ?>"><?= __('Current period') ?></span>
<span class="axis-label" style="<?= sprintf('left: %spx; top: %spx;', 0, 0) ?>"><?= __('Period 2') ?></span>
<span class="axis-label" style="<?= sprintf('left: %spx; top: %spx;', $canvasWidth / 2, 0) ?>"><?= __('Previous period') ?></span>
<span class="axis-label" style="<?= sprintf('left: %spx; top: %spx;', $canvasWidth, 0) ?>"><?= __('Current period') ?></span>
</div>
</div>
</div>
@ -297,4 +297,10 @@ if (!function_exists('computeLinePositions')) {
height: 10px;
border: 1px solid #000;
}
.axis-label {
position: absolute;
white-space: nowrap;
translate: -50%;
}
</style>