notes.phtml: Collapse notes if they exceed 200px

This commit is contained in:
Johannes Meyer 2019-07-25 13:20:54 +02:00
parent 1fd673a034
commit 74bf1bdc89
1 changed files with 5 additions and 1 deletions

View File

@ -38,7 +38,11 @@ if (($navigation->isEmpty() || ! $navigation->hasRenderableItems()) && $notes ==
<td> <td>
<?= $navigation->getRenderer() ?> <?= $navigation->getRenderer() ?>
<?php if ($notes !== ''): ?> <?php if ($notes !== ''): ?>
<?= $this->markdown($notes) ?> <?= $this->markdown($notes, [
'id' => $object->type . '-notes',
'class' => 'collapsible',
'data-visible-height' => 200
]) ?>
<?php endif ?> <?php endif ?>
</td> </td>
</tr> </tr>