From 31807eb4ab46c549f8d80135636d7ca1b45619d1 Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Tue, 23 May 2023 13:15:19 +0400 Subject: [PATCH] updated padding of table & toolbar --- app/assets/javascripts/reports/reports_datatable.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/reports/reports_datatable.js b/app/assets/javascripts/reports/reports_datatable.js index e7cd37475..a934e76de 100644 --- a/app/assets/javascripts/reports/reports_datatable.js +++ b/app/assets/javascripts/reports/reports_datatable.js @@ -102,6 +102,7 @@ function updateButtons() { if (window.actionToolbarComponent) { window.actionToolbarComponent.fetchActions({ report_ids: CHECKBOX_SELECTOR.selectedRows }); + $('.dataTables_scrollBody').css('padding-bottom', `${CHECKBOX_SELECTOR.selectedRows.length > 0 ? 68 : 0}px`); } const rowsCount = CHECKBOX_SELECTOR.selectedRows.length; @@ -210,6 +211,7 @@ createdRow: addAttributesToRow, initComplete: function(settings) { initActionToolbar(); + actionToolbarComponent.setBottomOffset(75); const { nTableWrapper: dataTableWrapper } = settings; CHECKBOX_SELECTOR = new DataTableCheckboxes(dataTableWrapper, {