This commit is contained in:
Viet An
2026-07-02 13:56:28 +07:00
parent 976816d408
commit 6d9dce38cb
5 changed files with 90 additions and 18 deletions

View File

@@ -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