[PLUGIN][AttachmentCollections] Make it look good
This commit is contained in:
parent
7ddfe92773
commit
65a3d738ca
@ -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(),
|
||||
],
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user