Currently, the shrink/expand table button is implemented in JavaScript, but it's slow because it has to iterate over each row.
Changes
Add an always-visible class to specific rows when generating the HTML, then use JavaScript to add/remove a CSS class shrunk when the Shrink Tables/Expand Tables button is clicked. This should be much faster.
/cc @JulesDT
[x] Ensured that you have rebased your branch with this repo's latest master branch.
[x] Ensured that relevant issues are linked, if this PR resolves any outstanding.
[x] Added a screenshot for all UI changes (you can drag the file into this edit box and it will be uploaded).
[x] Ensured that changes to auto-generated files have not been committed; in particular, *.html, *.csv, *.xml and *.json files.
Motivation
Currently, the shrink/expand table button is implemented in JavaScript, but it's slow because it has to iterate over each row.
Changes
Add an
always-visible
class to specific rows when generating the HTML, then use JavaScript to add/remove a CSS classshrunk
when theShrink Tables
/Expand Tables
button is clicked. This should be much faster./cc @JulesDT
*.html
,*.csv
,*.xml
and*.json
files.