Skip to content

Commit 1d6f0b4

Browse files
committed
Moved scoll to see more actions hint into optgroup title
1 parent df65f39 commit 1d6f0b4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

templates/components/datatables.macro.html.twig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
<input type="hidden" name="ids" {{ stimulus_target('elements/datatables/parts', 'selectIDs') }} value="">
3131

3232
<div class="d-none mb-2 bg-body-tertiary shadow-sm border border-secondary rounded mx-2 p-2" {{ stimulus_target('elements/datatables/parts', 'selectPanel') }}>
33-
<small class="text-muted">{% trans %}part_list.action.scrollable_hint{% endtrans %}</small>
34-
3533
<div class="input-group">
3634
<button class="btn btn-outline-secondary" type="button" {{ stimulus_action('elements/datatables/parts', 'invertSelection')}}
3735
title="{% trans %}part_list.action.invert_selection{% endtrans %}" ><i class="fa-solid fa-arrow-right-arrow-left"></i></button>
@@ -41,7 +39,7 @@
4139

4240
<select class="form-select" name="action" data-controller="elements--select" {{ stimulus_action('elements/datatables/parts', 'updateTargetPicker', 'change') }}
4341
title="{% trans %}part_list.action.action.title{% endtrans %}" required>
44-
<optgroup label="{% trans %}part_list.action.action.group.favorite{% endtrans %}">
42+
<optgroup label="{% trans %}part_list.action.action.group.favorite{% endtrans %} ({% trans %}part_list.action.scrollable_hint{% endtrans %})">
4543
<option {% if not is_granted('@parts.change_favorite') %}disabled{% endif %} value="favorite">{% trans %}part_list.action.action.favorite{% endtrans %}</option>
4644
<option {% if not is_granted('@parts.change_favorite') %}disabled{% endif %} value="unfavorite">{% trans %}part_list.action.action.unfavorite{% endtrans %}</option>
4745
</optgroup>

0 commit comments

Comments
 (0)