From 74bf1bdc8951317c8b25deb03c76c2d01273ebba Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 25 Jul 2019 13:20:54 +0200 Subject: [PATCH] notes.phtml: Collapse notes if they exceed 200px --- .../application/views/scripts/show/components/notes.phtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/application/views/scripts/show/components/notes.phtml b/modules/monitoring/application/views/scripts/show/components/notes.phtml index 87907cfb4..c868c955f 100644 --- a/modules/monitoring/application/views/scripts/show/components/notes.phtml +++ b/modules/monitoring/application/views/scripts/show/components/notes.phtml @@ -38,7 +38,11 @@ if (($navigation->isEmpty() || ! $navigation->hasRenderableItems()) && $notes == getRenderer() ?> - markdown($notes) ?> + markdown($notes, [ + 'id' => $object->type . '-notes', + 'class' => 'collapsible', + 'data-visible-height' => 200 + ]) ?> \ No newline at end of file