Position non-sticky footer at bottom of viewport

-Fix footer height and position after datatables are populated/drawn
-Remove footer-padding css rule
-Remove unnecessary spacing on all applicable pages
This commit is contained in:
joeuhren
2020-12-18 18:10:58 -07:00
parent 616f787540
commit 2df8a3f994
15 changed files with 88 additions and 71 deletions
+3
View File
@@ -75,6 +75,9 @@ script.
var amountParts = amount.split('.');
$("td:eq(2)", row).html(updown + amountParts[0] + '.<span class="decimal">' + amountParts[1] + '</span>').addClass(rowclass);
$("td:eq(3)", row).html(balanceParts[0] + '.<span class="decimal">' + balanceParts[1] + '</span>');
},
fnDrawCallback: function(settings) {
fixFooterHeightAndPosition();
}
});
});
+6
View File
@@ -23,6 +23,9 @@ script.
return rows;
}
},
fnDrawCallback: function(settings) {
fixFooterHeightAndPosition();
},
columns: [
{data: 'nodes', width: '100%'}
],
@@ -53,6 +56,9 @@ script.
return rows;
}
},
fnDrawCallback: function(settings) {
fixFooterHeightAndPosition();
},
columns: [
{data: 'nodes', width: '100%'}
],
+4
View File
@@ -29,6 +29,9 @@ script.
$("td:eq(2)", row).html(data['version']);
$("td:eq(3)", row).html(data['country']+flagBlock);
},
fnDrawCallback: function(settings) {
fixFooterHeightAndPosition();
},
columns: [
{ data: 'address', width: '25%' },
{ data: 'protocol', width: '25%' },
@@ -40,6 +43,7 @@ script.
$($.fn.dataTable.tables(true)).DataTable().responsive.recalc();
$($.fn.dataTable.tables(true)).css('width', '100%');
$($.fn.dataTable.tables(true)).DataTable().columns.adjust().draw();
fixFooterHeightAndPosition();
});
});
.card.card-default.border-0