diff --git a/static/js/receipt_upload.js b/static/js/receipt_upload.js index 4fbf803..04107ad 100644 --- a/static/js/receipt_upload.js +++ b/static/js/receipt_upload.js @@ -89,3 +89,14 @@ if (!window.receiptUploaderInitialized) { window.receiptUploaderInitialized = true; } + +document.addEventListener("DOMContentLoaded", function () { + const isMobile = /Mobi|Android|iPhone|iPad/i.test(navigator.userAgent); + const galleryBtn = document.getElementById("galleryBtn"); + const galleryInput = document.getElementById("galleryInput"); + + if (!isMobile && galleryBtn && galleryInput) { + galleryBtn.style.display = "none"; + galleryInput.disabled = true; + } +}); diff --git a/templates/list_share.html b/templates/list_share.html index 3b33b09..b96f601 100644 --- a/templates/list_share.html +++ b/templates/list_share.html @@ -130,21 +130,28 @@
📤 Dodaj zdjęcie paragonu
-