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>
|
<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>
|
Loading…
Reference in New Issue