summary refs log tree commit diff stats
path: root/resources/js/gallery.js
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2022-06-10 14:29:43 +0530
committerAndinus <andinus@nand.sh>2022-06-10 14:30:38 +0530
commit483cb31907a34f5aea7c221fd1a22427bf3fa487 (patch)
tree28943b80dc7de6e586c8bbd5d2e3e06a2dccd1d3 /resources/js/gallery.js
parent8c46ba5ac96734296bef661058190d9f78ef5db2 (diff)
downloadcrater-483cb31907a34f5aea7c221fd1a22427bf3fa487.tar.gz
Fix gallery item size, other improvements
Diffstat (limited to 'resources/js/gallery.js')
-rw-r--r--resources/js/gallery.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/resources/js/gallery.js b/resources/js/gallery.js
index 73e5458..f9be5e2 100644
--- a/resources/js/gallery.js
+++ b/resources/js/gallery.js
@@ -6,11 +6,13 @@
 // gutter  - the space (in px) between the columns and grid items
 
 // image width.
-const imgW = 384;
+const imgW = 400;
 
 const sizes = [
     { columns: 1, gutter: 30 },
-    { mq: ((imgW * 2.5) + 40) + "px", columns: 2, gutter: 40 },
+    { mq: ((imgW * 2.2) + 40) + "px", columns: 2, gutter: 35 },
+    { mq: ((imgW * 3.5) + 50) + "px", columns: 3, gutter: 50 },
+    { mq: ((imgW * 4.4) + 50) + "px", columns: 4, gutter: 50 },
     // { mq: '768px', columns: 2, gutter: 25 },
     // { mq: '1280px', columns: 3, gutter: 50 }
 ];
@@ -28,7 +30,6 @@ instance
 
 // start it up, when the DOM is ready. note that if images are in the
 // grid, you may need to wait for document.readyState === 'complete'.
-
 document.addEventListener('DOMContentLoaded', eve => {
     document.addEventListener('readystatechange', event => {
         if (event.target.readyState === 'complete') {