notes.phtml: Collapse notes if they exceed 200px
This commit is contained in:
parent
1fd673a034
commit
74bf1bdc89
|
@ -38,7 +38,11 @@ if (($navigation->isEmpty() || ! $navigation->hasRenderableItems()) && $notes ==
|
|||
<td>
|
||||
<?= $navigation->getRenderer() ?>
|
||||
<?php if ($notes !== ''): ?>
|
||||
<?= $this->markdown($notes) ?>
|
||||
<?= $this->markdown($notes, [
|
||||
'id' => $object->type . '-notes',
|
||||
'class' => 'collapsible',
|
||||
'data-visible-height' => 200
|
||||
]) ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
Loading…
Reference in New Issue