Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.
fix: only show swipe hint on mobile screens (#612)
Miguel Ribeirobd5e3511829a
diff --git a/includes/version.php b/includes/version.phpindex de6b4e5..706b744 100644--- a/includes/version.php+++ b/includes/version.php@@ -1,3 +1,3 @@<?php-$version = "v2.36.1";+$version = "v2.36.2";?>\ No newline at end of filediff --git a/scripts/dashboard.js b/scripts/dashboard.jsindex ec54d98..8fb2ae1 100644--- a/scripts/dashboard.js+++ b/scripts/dashboard.js@@ -549,6 +549,7 @@ function setSwipeElements() {}element.style.transition = 'transform 0.2s ease'; // Smooth snap effectelement.style.transform = `translateX(${translateX}px)`;+ element.style.zIndex = '1';});});@@ -715,7 +716,7 @@ function expandActions(event, subscriptionId) {}function swipeHintAnimation() {- if (window.mobileNavigation) {+ if (window.mobileNavigation && window.matchMedia('(max-width: 768px)').matches) {const maxAnimations = 3;const cookieName = 'swipeHintCount';@@ -728,6 +729,7 @@ function swipeHintAnimation() {setTimeout(() => {firstElement.style.transform = 'translateX(0px)';+ firstElement.style.zIndex = '1';}, 600);}