diff --git a/library/X509/ExpirationWidget.php b/library/X509/ExpirationWidget.php index 989dfbcd..36d7d9aa 100644 --- a/library/X509/ExpirationWidget.php +++ b/library/X509/ExpirationWidget.php @@ -74,7 +74,7 @@ protected function assemble() $progressBarStyle = (new Style()) ->setModule('x509') ->setNonce(Csp::getStyleNonce()) - ->addFor($progressBar, ['width' => $ratio]); + ->addFor($progressBar, ['width' => sprintf('%F%%', $ratio)]); $this->addHtml(Html::tag('span', ['class' => 'progress-bar-label', 'title' => $dateTip], $message)); $this->addHtml($progressBarStyle, Html::tag('div', ['class' => 'progress-bar dont-print'], $progressBar));