Move 'add more' inside table toolbar on reports (#35963)

This commit is contained in:
Emelia Smith 2025-09-02 09:54:58 +02:00 committed by GitHub
parent fb736eaed5
commit 2138f3e40f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View File

@ -205,6 +205,10 @@ a.table-action-link {
&__actions {
text-align: end;
padding-inline-end: 16px - 5px;
.table-action-link {
padding: 0;
}
}
}

View File

@ -40,10 +40,6 @@
%p
= t 'admin.reports.statuses_description_html'
= link_to safe_join([material_symbol('add'), t('admin.reports.add_to_report')]),
admin_account_statuses_path(@report.target_account_id, report_id: @report.id),
class: 'table-action-link'
= form_with model: @form, url: batch_admin_account_statuses_path(@report.target_account_id, report_id: @report.id) do |f|
.batch-table
@ -51,6 +47,9 @@
%label.batch-table__toolbar__select.batch-checkbox-all
= check_box_tag :batch_checkbox_all, nil, false
.batch-table__toolbar__actions
= link_to safe_join([material_symbol('add'), t('admin.reports.add_to_report')]),
admin_account_statuses_path(@report.target_account_id, report_id: @report.id),
class: 'table-action-link'
- if !@statuses.empty? && @report.unresolved?
= f.button safe_join([material_symbol('close'), t('admin.statuses.batch.remove_from_report')]), name: :remove_from_report, class: 'table-action-link', type: :submit
.batch-table__body