diff --git a/assets/components/preview-content-dialog.js b/assets/components/preview-content-dialog.js index 5ff1885..9c73e98 100644 --- a/assets/components/preview-content-dialog.js +++ b/assets/components/preview-content-dialog.js @@ -28,6 +28,9 @@ export default class PreviewContentDialog extends HTMLDialogElement { } display({ heading, content }) { + if (this.hasAttribute('mdWidth')) { + this.style.width = this.getAttribute('mdWidth'); + } this.setHeading(heading); this.setContent(content); this.showModal(); diff --git a/src/Monitor/Framework/Controller/ApiController.php b/src/Monitor/Framework/Controller/ApiController.php index 466944a..f037f41 100644 --- a/src/Monitor/Framework/Controller/ApiController.php +++ b/src/Monitor/Framework/Controller/ApiController.php @@ -98,6 +98,7 @@ class ApiController extends AbstractController 'allDay' => true, 'backgroundColor' => $eventColors[$monitor->getImdbId()], 'borderColor' => $eventColors[$monitor->getImdbId()], + 'attachment' => $monitor->getPoster(), ]; }); diff --git a/templates/components/MonitorListRow.html.twig b/templates/components/MonitorListRow.html.twig index 1902d81..9a10a9e 100644 --- a/templates/components/MonitorListRow.html.twig +++ b/templates/components/MonitorListRow.html.twig @@ -28,11 +28,13 @@