changes
This commit is contained in:
@@ -35,7 +35,9 @@ function getViewport() {
|
||||
const width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
||||
|
||||
// Follow Bulma's breakpoints: https://bulma.io/documentation/start/responsiveness/#breakpoints
|
||||
if (width <= 768)
|
||||
if (width <= 500)
|
||||
viewport = 0; // custom
|
||||
else if (width <= 768)
|
||||
viewport = 1; // mobile
|
||||
else if (width <= 1023)
|
||||
viewport = 2; // tablet
|
||||
|
||||
Reference in New Issue
Block a user