Swapped out Packery for MagicGrid

This switches the Gallery shortcode to use MagicGrid instead of Packery.
The main benefit is size (2.7k as opposed to 32k), and the results are
mostly similar minus a few differences in image position.
This commit is contained in:
StandingPad Animations
2024-03-06 20:04:54 -06:00
parent ef4068911b
commit f1d582ff98
6 changed files with 26 additions and 82 deletions

View File

@@ -39,7 +39,7 @@
"fuse.js": "^7.0.0",
"jquery": "^3.7.1",
"katex": "^0.16.9",
"packery": "^2.1.2",
"magic-grid": "^3.2.4",
"prettier": "^3.2.5",
"prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.5.11",
@@ -85,8 +85,8 @@
"to": "assets/lib/jquery/jquery.slim.min.js"
},
{
"from": "node_modules/packery/dist/packery.pkgd.min.js",
"to": "assets/lib/packery/packery.pkgd.min.js"
"from": "node_modules/magic-grid/dist/magic-grid.min.js",
"to": "assets/lib/magic-grid/magic-grid.min.js"
},
{
"from": "node_modules/tw-elements/js/tw-elements.umd.min.js",