Skip to content

Commit

Permalink
fix sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Sep 24, 2024
1 parent d294fa1 commit 2cb5785
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions templates/pages/admin/assetdefinition/fields_display.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<div class="form-field row flex-grow-1">
<label class="col-form-label cursor-grab col-xxl-5 text-xxl-end">
{{ field_label }}
<i class="ti ti-grip-vertical"></i>
<i class="ti ti-grip-vertical sort-handle"></i>
</label>
<div class="col-xxl-7 field-container btn-group shadow-none">
<input type="text" disabled class="form-control" />
Expand All @@ -62,7 +62,7 @@
{% block form_fields %}
<input type="hidden" name="_update_fields_display" value="1" />

<div class="grid gap-3" id="sortable-fields">
<div class="grid gap-3 user-select-none" id="sortable-fields">
{% for field in fields_display %}
{{ _self.draggable_field(field['key'], all_fields[field['key']])|raw }}
{% endfor %}
Expand All @@ -81,12 +81,6 @@
</div>
</div>

<style>
.sortable-dragging {
display: none !important; /* d-flex has an important rule */
}
</style>

<script>
$(() => {
// init sortable lib on fields
Expand Down

0 comments on commit 2cb5785

Please sign in to comment.