[PLUGIN][AttachmentCollections] Make it look good

This commit is contained in:
Phablulo Joel 2021-12-27 15:38:47 -03:00
parent 7ddfe92773
commit 65a3d738ca
3 changed files with 23 additions and 12 deletions

View File

@ -212,7 +212,7 @@ class AttachmentCollections extends Plugin
$res[] = Formatting::twigRenderFile(
'AttachmentCollections/widget.html.twig',
[
'colls' => $colls,
'has_collections' => $colls,
'add_form' => $add_form->createView(),
'create_form' => $create_form->createView(),
],

View File

@ -4,6 +4,7 @@
<h2>{% trans %}Add to collection{% endtrans %}</h2>
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
</summary>
{% if has_collections %}
<fieldset class="section-form">
{{ form(add_form) }}
</fieldset>
@ -17,6 +18,11 @@
{{ form(create_form) }}
</fieldset>
</details>
{% else %}
<fieldset class="section-form">
{{ form(create_form) }}
</fieldset>
{% endif %}
</details>
</section>

View File

@ -10,3 +10,8 @@
.attachment-collections .attachment-collections-selections-options button {
margin: 0 !important;
}
#add_collections {
height: auto !important;
max-height: 20rem !important;
overflow-y: auto !important;
}